diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /libkcal/tests/testrecurrencetype.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkcal/tests/testrecurrencetype.cpp')
-rw-r--r-- | libkcal/tests/testrecurrencetype.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libkcal/tests/testrecurrencetype.cpp b/libkcal/tests/testrecurrencetype.cpp index c997e9a67..8fc1c5274 100644 --- a/libkcal/tests/testrecurrencetype.cpp +++ b/libkcal/tests/testrecurrencetype.cpp @@ -31,7 +31,7 @@ extern "C" { #include <kdebug.h> #include <kcmdlineargs.h> -#include <qfile.h> +#include <tqfile.h> @@ -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,7 +97,7 @@ int main( int argc, char **argv ) incidence->recurrence()->dump(); - QDateTime dt( incidence->dtStart().addSecs(-2) ); + TQDateTime dt( incidence->dtStart().addSecs(-2) ); int i=0; if ( outstream ) { // Output to file for testing purposes |