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.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kstars/kstars/main.cpp b/kstars/kstars/main.cpp
index a16acfbc..c79fc0ad 100644
--- a/kstars/kstars/main.cpp
+++ b/kstars/kstars/main.cpp
@@ -73,13 +73,13 @@ int main(int argc, char *argv[])
//parse filename and image format
const char* format = "PNG";
TQString fname = args->getOption( "filename" );
- TQString ext = fname.mid( fname.findRev(".")+1 );
+ TQString ext = fname.mid( fname.tqfindRev(".")+1 );
if ( ext.lower() == "png" ) { format = "PNG"; }
else if ( ext.lower() == "jpg" || ext.lower() == "jpeg" ) { format = "JPG"; }
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();
@@ -109,8 +109,8 @@ int main(int argc, char *argv[])
TQString datestring = args->getOption( "date" );
KStarsDateTime kdt;
if ( ! datestring.isEmpty() ) {
- if ( datestring.contains( "-" ) ) { //assume ISODate format
- if ( datestring.contains( ":" ) ) { //also includes time
+ if ( datestring.tqcontains( "-" ) ) { //assume ISODate format
+ if ( datestring.tqcontains( ":" ) ) { //also includes time
kdt = KStarsDateTime::fromString( datestring, Qt::ISODate );
} else { //string probably contains date only
kdt.setDate( ExtDate::fromString( datestring, Qt::ISODate ) );
@@ -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 );
@@ -151,7 +151,7 @@ int main(int argc, char *argv[])
TQString scriptfile = args->getOption( "script" );
if ( ! scriptfile.isEmpty() ) {
if ( dat->executeScript( scriptfile, map ) ) {
- std::cout << i18n( "Script executed." ).utf8() << std::endl;
+ std::cout << i18n( "Script executed." ).utf8().data() << std::endl;
} else {
kdWarning() << i18n( "Could not execute script." ) << endl;
}
@@ -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( &sky );
- kapp->processEvents(100000);
+ map->exportSkyImage( TQT_TQPAINTDEVICE(&sky) );
+ 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 = "";
}