diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:50:21 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:50:21 -0600 |
commit | 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (patch) | |
tree | 89de88213bd261e4ccaade899ab2d6ec34b3a5a7 /konsolekalendar/main.cpp | |
parent | 1dad5f662a09dfc5cc041caffe0f674044a4dcec (diff) | |
download | tdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.tar.gz tdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'konsolekalendar/main.cpp')
-rw-r--r-- | konsolekalendar/main.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/konsolekalendar/main.cpp b/konsolekalendar/main.cpp index 0fc5bf72c..02aa5b6e2 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::tqcurrentDate(); + TQDate startdate = TQDate::currentDate(); TQTime starttime( 7, 0 ); // Default values for end date/time (today at 17:00) - TQDate enddate = TQDate::tqcurrentDate(); + TQDate enddate = TQDate::currentDate(); TQTime endtime( 17, 0 ); // Default values for switches @@ -241,22 +241,22 @@ int main( int argc, char *argv[] ) if ( args->isSet( "export-list" ) ) { cout << endl; cout << i18n( "%1 supports these export formats:" ). - tqarg( progDisplay ).local8Bit().data() + arg( progDisplay ).local8Bit().data() << endl; cout << i18n( " %1 [Default]" ). - tqarg( "Text" ).local8Bit().data() + arg( "Text" ).local8Bit().data() << endl; cout << i18n( " %1 (like %2, but more compact)" ). - tqarg( "Short", "Text" ).local8Bit().data() + arg( "Short", "Text" ).local8Bit().data() << endl; cout << i18n( " %1" ). - tqarg( "HTML" ).local8Bit().data() + arg( "HTML" ).local8Bit().data() << endl; cout << i18n( " %1 (like %2, but in a month view)" ). - tqarg( "HTMLmonth", "HTML" ).local8Bit().data() + arg( "HTMLmonth", "HTML" ).local8Bit().data() << endl; cout << i18n( " %1 (Comma-Separated Values)" ). - tqarg( "CSV" ).local8Bit().data() + arg( "CSV" ).local8Bit().data() << endl; cout << endl; return 0; @@ -315,7 +315,7 @@ int main( int argc, char *argv[] ) variables.setExportType( ExportTypeTextShort ); } else { cout << i18n( "Invalid Export Type Specified: %1" ). - tqarg( option ).local8Bit().data() + arg( option ).local8Bit().data() << endl; return 1; } @@ -475,7 +475,7 @@ int main( int argc, char *argv[] ) startdate = TQDate::fromString( option, Qt::ISODate ); if ( !startdate.isValid() ) { cout << i18n( "Invalid Start Date Specified: %1" ). - tqarg( option ).local8Bit().data() + arg( option ).local8Bit().data() << endl; return 1; } @@ -500,7 +500,7 @@ int main( int argc, char *argv[] ) starttime = TQTime::fromString( option, Qt::ISODate ); if ( !starttime.isValid() ) { cout << i18n( "Invalid Start Time Specified: %1" ). - tqarg( option ).local8Bit().data() + arg( option ).local8Bit().data() << endl; return 1; } @@ -530,7 +530,7 @@ int main( int argc, char *argv[] ) enddate = TQDate::fromString( option, Qt::ISODate ); if ( !enddate.isValid() ) { cout << i18n( "Invalid End Date Specified: %1" ). - tqarg( option ).local8Bit().data() + arg( option ).local8Bit().data() << endl; return 1; } @@ -554,7 +554,7 @@ int main( int argc, char *argv[] ) if ( !ok ) { cout << i18n( "Invalid Date Count Specified: %1" ). - tqarg( option ).local8Bit().data() + arg( option ).local8Bit().data() << endl; return 1; } @@ -582,7 +582,7 @@ int main( int argc, char *argv[] ) endtime = TQTime::fromString( option, Qt::ISODate ); if ( !endtime.isValid() ) { cout << i18n( "Invalid End Time Specified: %1" ). - tqarg( option ).local8Bit().data() + arg( option ).local8Bit().data() << endl; return 1; } @@ -682,12 +682,12 @@ int main( int argc, char *argv[] ) if ( remote ) { cout << i18n( "Attempting to create a remote file %1" ). - tqarg( variables.getCalendarFile() ).local8Bit().data() << endl; + arg( variables.getCalendarFile() ).local8Bit().data() << endl; return 1; } else { if ( exists ) { cout << i18n( "Calendar %1 already exists" ). - tqarg( variables.getCalendarFile() ).local8Bit().data() + arg( variables.getCalendarFile() ).local8Bit().data() << endl; return 1; } @@ -695,12 +695,12 @@ int main( int argc, char *argv[] ) if ( konsolekalendar->createCalendar() ) { cout << i18n( "Calendar %1 successfully created" ). - tqarg( variables.getCalendarFile() ).local8Bit().data() + arg( variables.getCalendarFile() ).local8Bit().data() << endl; return 0; } else { cout << i18n( "Unable to create calendar: %1" ). - tqarg( variables.getCalendarFile() ).local8Bit().data() + arg( variables.getCalendarFile() ).local8Bit().data() << endl; return 1; } @@ -708,7 +708,7 @@ int main( int argc, char *argv[] ) if ( !exists ) { cout << i18n( "Calendar file not found %1" ). - tqarg( variables.getCalendarFile() ).local8Bit().data() + arg( variables.getCalendarFile() ).local8Bit().data() << endl; cout << i18n( "Try --create to create new calendar file" ).local8Bit().data() << endl; @@ -894,17 +894,17 @@ int main( int argc, char *argv[] ) */ TQString prodId = "-//K Desktop Environment//NONSGML %1 %2//EN"; CalFormat::setApplication( progDisplay, - prodId.tqarg( progDisplay ).tqarg( progVersion ) ); + prodId.arg( progDisplay ).arg( progVersion ) ); if ( importFile ) { if ( konsolekalendar->importCalendar() ) { cout << i18n( "Calendar %1 successfully imported" ). - tqarg( variables.getImportFile() ).local8Bit().data() + arg( variables.getImportFile() ).local8Bit().data() << endl; return 0; } else { cout << i18n( "Unable to import calendar: %1" ). - tqarg( variables.getImportFile() ).local8Bit().data() + arg( variables.getImportFile() ).local8Bit().data() << endl; return 1; } @@ -971,7 +971,7 @@ int main( int argc, char *argv[] ) << endl; if ( !konsolekalendar->showInstance() ) { cout << i18n( "Cannot open specified export file: %1" ). - tqarg( variables.getExportFile() ).local8Bit().data() + arg( variables.getExportFile() ).local8Bit().data() << endl; return 1; } |