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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kstars/kstars/main.cpp b/kstars/kstars/main.cpp
index c79fc0ad..b96756c4 100644
--- a/kstars/kstars/main.cpp
+++ b/kstars/kstars/main.cpp
@@ -73,7 +73,7 @@ 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.tqfindRev(".")+1 );
+ TQString ext = fname.mid( fname.findRev(".")+1 );
if ( ext.lower() == "png" ) { format = "PNG"; }
else if ( ext.lower() == "jpg" || ext.lower() == "jpeg" ) { format = "JPG"; }
else if ( ext.lower() == "gif" ) { format = "GIF"; }
@@ -109,8 +109,8 @@ int main(int argc, char *argv[])
TQString datestring = args->getOption( "date" );
KStarsDateTime kdt;
if ( ! datestring.isEmpty() ) {
- if ( datestring.tqcontains( "-" ) ) { //assume ISODate format
- if ( datestring.tqcontains( ":" ) ) { //also includes time
+ if ( datestring.contains( "-" ) ) { //assume ISODate format
+ if ( datestring.contains( ":" ) ) { //also includes time
kdt = KStarsDateTime::fromString( datestring, Qt::ISODate );
} else { //string probably contains date only
kdt.setDate( ExtDate::fromString( datestring, Qt::ISODate ) );