From f4fae92b6768541e2952173c3d4b09040f95bf7e Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 16 Feb 2011 20:17:18 +0000 Subject: Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konsolekalendar/konsolekalendarepoch.cpp | 4 ++-- konsolekalendar/konsolekalendarexports.cpp | 14 +++++++------- konsolekalendar/main.cpp | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) (limited to 'konsolekalendar') diff --git a/konsolekalendar/konsolekalendarepoch.cpp b/konsolekalendar/konsolekalendarepoch.cpp index e469a42c..59cd7e91 100644 --- a/konsolekalendar/konsolekalendarepoch.cpp +++ b/konsolekalendar/konsolekalendarepoch.cpp @@ -64,8 +64,8 @@ uint KonsoleKalendarEpoch::QDateTime2epoch( TQDateTime dt ) // SORRY QT DOESN'T HANDLE DAYLIGHT SAVINGS TIME. // Compute #seconds to subtract for local timezone difference from UTC. - int offset = TQDateTime::currentDateTime( Qt::UTC ).toTime_t() - - TQDateTime::currentDateTime( Qt::LocalTime ).toTime_t(); + int offset = TQDateTime::tqcurrentDateTime( Qt::UTC ).toTime_t() + - TQDateTime::tqcurrentDateTime( Qt::LocalTime ).toTime_t(); return( dt.toTime_t() - offset ); } diff --git a/konsolekalendar/konsolekalendarexports.cpp b/konsolekalendar/konsolekalendarexports.cpp index f1d93b0a..60441bd5 100644 --- a/konsolekalendar/konsolekalendarexports.cpp +++ b/konsolekalendar/konsolekalendarexports.cpp @@ -174,21 +174,21 @@ bool KonsoleKalendarExports::exportAsTxtShort( TQTextStream *ts, *ts << "\t"; // Print Event Summary - *ts << event->summary().replace( TQChar( '\n' ), TQChar( ' ' ) ); + *ts << event->summary().tqreplace( TQChar( '\n' ), TQChar( ' ' ) ); // Print Event Location if ( !event->location().isEmpty() ) { if ( !event->summary().isEmpty() ) { *ts << ", "; } - *ts << event->location().replace( TQChar( '\n' ), TQChar( ' ' ) ); + *ts << event->location().tqreplace( TQChar( '\n' ), TQChar( ' ' ) ); } *ts << endl; // Print Event Description if ( !event->description().isEmpty() ) { *ts << "\t\t\t" - << event->description().replace( TQChar( '\n' ), TQChar( ' ' ) ) + << event->description().tqreplace( TQChar( '\n' ), TQChar( ' ' ) ) << endl; } @@ -204,7 +204,7 @@ TQString KonsoleKalendarExports::processField( TQString field, TQString dquote ) // 2. Surrounds field with double quotes TQString double_dquote = dquote + dquote; - TQString retField = dquote + field.replace( dquote, double_dquote ) + dquote; + TQString retField = dquote + field.tqreplace( dquote, double_dquote ) + dquote; return retField; } @@ -233,9 +233,9 @@ bool KonsoleKalendarExports::exportAsCSV( TQTextStream *ts, << delim << pF( "" ); } - *ts << delim << pF( event->summary().replace( TQChar('\n'), TQChar(' ') ) ) - << delim << pF( event->location().replace( TQChar('\n'), TQChar(' ') ) ) - << delim << pF( event->description().replace( TQChar('\n'), TQChar(' ') ) ) + *ts << delim << pF( event->summary().tqreplace( TQChar('\n'), TQChar(' ') ) ) + << delim << pF( event->location().tqreplace( TQChar('\n'), TQChar(' ') ) ) + << delim << pF( event->description().tqreplace( TQChar('\n'), TQChar(' ') ) ) << delim << pF( event->uid() ) << endl; diff --git a/konsolekalendar/main.cpp b/konsolekalendar/main.cpp index 59b9a2f8..42f5dd99 100644 --- a/konsolekalendar/main.cpp +++ b/konsolekalendar/main.cpp @@ -204,11 +204,11 @@ int main( int argc, char *argv[] ) KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); // Default values for start date/time (today at 07:00) - TQDate startdate = TQDate::currentDate(); + TQDate startdate = TQDate::tqcurrentDate(); TQTime starttime( 7, 0 ); // Default values for end date/time (today at 17:00) - TQDate enddate = TQDate::currentDate(); + TQDate enddate = TQDate::tqcurrentDate(); TQTime endtime( 17, 0 ); // Default values for switches -- cgit v1.2.3