From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkcal/tests/testrecurprevious.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'libkcal/tests/testrecurprevious.cpp') diff --git a/libkcal/tests/testrecurprevious.cpp b/libkcal/tests/testrecurprevious.cpp index c0a90b8b0..2d127d49f 100644 --- a/libkcal/tests/testrecurprevious.cpp +++ b/libkcal/tests/testrecurprevious.cpp @@ -31,7 +31,7 @@ extern "C" { #include #include -#include +#include @@ -64,26 +64,26 @@ int main( int argc, char **argv ) // use zoneinfo data from source dir set_zone_directory( KDETOPSRCDIR "/libkcal/libical/zoneinfo" ); - QString input = QFile::decodeName( args->arg( 0 ) ); + TQString input = TQFile::decodeName( args->arg( 0 ) ); kdDebug(5800) << "Input file: " << input << endl; - QTextStream *outstream; + TQTextStream *outstream; outstream = 0; - QString fn(""); + TQString fn(""); if ( args->count() > 1 ) { fn = args->arg( 1 ); kdDebug() << "We have a file name given: " << fn << endl; } - QFile outfile( fn ); + TQFile outfile( fn ); if ( !fn.isEmpty() && outfile.open( IO_WriteOnly ) ) { kdDebug() << "Opened output file!!!" << endl; - outstream = new QTextStream( &outfile ); + outstream = new TQTextStream( &outfile ); } - CalendarLocal cal( QString::fromLatin1("UTC") ); + CalendarLocal cal( TQString::fromLatin1("UTC") ); if ( !cal.load( input ) ) return 1; - QString tz = cal.nonKDECustomProperty( "X-LibKCal-Testsuite-OutTZ" ); + TQString tz = cal.nonKDECustomProperty( "X-LibKCal-Testsuite-OutTZ" ); if ( !tz.isEmpty() ) { cal.setTimeZoneIdViewOnly( tz ); } @@ -97,10 +97,10 @@ int main( int argc, char **argv ) incidence->recurrence()->dump(); - QDateTime dt( incidence->recurrence()->endDateTime() ); + TQDateTime dt( incidence->recurrence()->endDateTime() ); int i=0; if ( outstream ) { - if ( !dt.isValid() ) dt = QDateTime( QDate( 2011, 1, 1 ), QTime( 0, 0, 1 ) ); + if ( !dt.isValid() ) dt = TQDateTime( TQDate( 2011, 1, 1 ), TQTime( 0, 0, 1 ) ); else dt = dt.addYears( 2 ); kdDebug(5800) << "-------------------------------------------" << endl; kdDebug(5800) << " *~*~*~*~ Starting with date: " << dt << endl; @@ -112,7 +112,7 @@ int main( int argc, char **argv ) (*outstream) << dt.toString( Qt::ISODate ) << endl; } } else { - if ( !dt.isValid() ) dt = QDateTime( QDate( 2005, 7, 31 ), QTime( 23, 59, 59 ) ); + if ( !dt.isValid() ) dt = TQDateTime( TQDate( 2005, 7, 31 ), TQTime( 23, 59, 59 ) ); else dt = dt.addYears( 2 ); incidence->recurrence()->dump(); kdDebug(5800) << "-------------------------------------------" << endl; -- cgit v1.2.1