summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/timebox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/timebox.cpp')
-rw-r--r--kstars/kstars/timebox.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kstars/kstars/timebox.cpp b/kstars/kstars/timebox.cpp
index 5f6040f0..c97b4a89 100644
--- a/kstars/kstars/timebox.cpp
+++ b/kstars/kstars/timebox.cpp
@@ -91,7 +91,7 @@ TQTime timeBox::createTime ( bool *ok )
TQStringList fields;
//check for colon-delimiters or space-delimiters
- if ( entry.tqcontains(':') )
+ if ( entry.contains(':') )
fields = TQStringList::split( ':', entry );
else fields = TQStringList::split( " ", entry );
@@ -113,9 +113,9 @@ TQTime timeBox::createTime ( bool *ok )
// ignore all after 3rd field
if ( fields.count() >= 3 ) {
- fields[0].tqreplace( TQRegExp("h"), "" );
- fields[1].tqreplace( TQRegExp("m"), "" );
- fields[2].tqreplace( TQRegExp("s"), "" );
+ fields[0].replace( TQRegExp("h"), "" );
+ fields[1].replace( TQRegExp("m"), "" );
+ fields[2].replace( TQRegExp("s"), "" );
}
//See if first two fields parse as integers.
//