Fix FTBFS under Slackware

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1174370 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 8a6e705fe8
commit 11dddb7e7b

@ -49,7 +49,11 @@
#include "calprintmonthconfig_base.h"
#include "calprinttodoconfig_base.h"
extern TQString cleanStr(const TQString &instr);
static TQString cleanString( const TQString &instr )
{
TQString ret = instr;
return ret.replace( '\n', ' ' );
}
/**************************************************************
* Print Incidence
@ -767,10 +771,10 @@ void CalPrintDay::print( TQPainter &p, int width, int height )
count++;
TQString str;
if ( (*it)->location().isEmpty() ) {
str = cleanStr( (*it)->summary() );
str = cleanString( (*it)->summary() );
} else {
str = i18n( "summary, location", "%1, %2" ).
arg( cleanStr( (*it)->summary() ), cleanStr( (*it)->location() ) );
arg( cleanString( (*it)->summary() ), cleanString( (*it)->location() ) );
}
printEventString( p, eventBox, str );
eventBox.setTop( eventBox.bottom() );

Loading…
Cancel
Save