summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/main.cpp')
-rw-r--r--kstars/kstars/main.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kstars/kstars/main.cpp b/kstars/kstars/main.cpp
index b76c5f0c..b96756c4 100644
--- a/kstars/kstars/main.cpp
+++ b/kstars/kstars/main.cpp
@@ -79,7 +79,7 @@ int main(int argc, char *argv[])
else if ( ext.lower() == "gif" ) { format = "GIF"; }
else if ( ext.lower() == "pnm" ) { format = "PNM"; }
else if ( ext.lower() == "bmp" ) { format = "BMP"; }
- else { kdWarning() << i18n( "Could not parse image format of %1; assuming PNG." ).arg( fname ) << endl; }
+ else { kdWarning() << i18n( "Could not parse image format of %1; assuming PNG." ).tqarg( fname ) << endl; }
//parse width and height
bool ok(false);
@@ -96,7 +96,7 @@ int main(int argc, char *argv[])
KStarsData *dat = new KStarsData();
TQObject::connect( dat, TQT_SIGNAL( progressText(TQString) ), dat, TQT_SLOT( slotConsoleMessage(TQString) ) );
dat->initialize();
- while (!dat->startupComplete) { kapp->processEvents(50); }
+ while (!dat->startupComplete) { kapp->tqprocessEvents(50); }
//Set Geographic Location
dat->setLocationFromOptions();
@@ -128,10 +128,10 @@ int main(int argc, char *argv[])
kdWarning() << " 25 Feb 1950 ; 25 Feb 1950 05:30:00" << endl;
kdWarning() << i18n( "Using CPU date/time instead." ) << endl;
- kdt = dat->geo()->LTtoUT( KStarsDateTime::currentDateTime() );
+ kdt = dat->geo()->LTtoUT( KStarsDateTime::tqcurrentDateTime() );
}
} else {
- kdt = dat->geo()->LTtoUT( KStarsDateTime::currentDateTime() );
+ kdt = dat->geo()->LTtoUT( KStarsDateTime::tqcurrentDateTime() );
}
dat->clock()->setUTC( kdt );
@@ -160,13 +160,13 @@ int main(int argc, char *argv[])
dat->setFullTimeUpdate();
dat->updateTime(dat->geo(), map );
- kapp->processEvents(100000);
+ kapp->tqprocessEvents(100000);
map->setMapGeometry();
map->exportSkyImage( TQT_TQPAINTDEVICE(&sky) );
- kapp->processEvents(100000);
+ kapp->tqprocessEvents(100000);
- if ( ! sky.save( fname, format ) ) kdWarning() << i18n( "Unable to save image: %1 " ).arg( fname ) << endl;
- else kdDebug() << i18n( "Saved to file: %1" ).arg( fname ) << endl;
+ if ( ! sky.save( fname, format ) ) kdWarning() << i18n( "Unable to save image: %1 " ).tqarg( fname ) << endl;
+ else kdDebug() << i18n( "Saved to file: %1" ).tqarg( fname ) << endl;
delete map;
delete dat;
@@ -179,7 +179,7 @@ int main(int argc, char *argv[])
TQString datestring = args->getOption( "date" );
if ( ! datestring.isEmpty() && ! KStarsDateTime::fromString( datestring ).isValid() ) {
- kdWarning() << i18n("Specified date (%1) is invalid. Will use current CPU date instead." ).arg( datestring ) << endl;
+ kdWarning() << i18n("Specified date (%1) is invalid. Will use current CPU date instead." ).tqarg( datestring ) << endl;
datestring = "";
}