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.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kstars/kstars/timebox.cpp b/kstars/kstars/timebox.cpp
index 5040cf1f..5f6040f0 100644
--- a/kstars/kstars/timebox.cpp
+++ b/kstars/kstars/timebox.cpp
@@ -17,14 +17,14 @@
#include "timebox.h"
#include "libkdeedu/extdate/extdatetime.h"
-#include <tqdatetime.h> //needed for QTime
+#include <tqdatetime.h> //needed for TQTime
#include <tqregexp.h>
#include <kglobal.h>
#include <klocale.h>
#include <stdlib.h>
#include <kdebug.h>
-timeBox::timeBox(TQWidget *parent, const char *name, bool tt) : TQLineEdit(parent,name)
+timeBox::timeBox(TQWidget *tqparent, const char *name, bool tt) : TQLineEdit(tqparent,name)
{
if (tt) {
@@ -91,7 +91,7 @@ TQTime timeBox::createTime ( bool *ok )
TQStringList fields;
//check for colon-delimiters or space-delimiters
- if ( entry.contains(':') )
+ if ( entry.tqcontains(':') )
fields = TQStringList::split( ':', entry );
else fields = TQStringList::split( " ", entry );
@@ -102,8 +102,8 @@ TQTime timeBox::createTime ( bool *ok )
if ( fields.count() == 2 ) {
double mx = fields[1].toDouble( &checkValue );
if ( checkValue ) {
- fields[1] = TQString("%1").arg( int(mx) );
- fields.append( TQString("%1").arg( int( 60.0*(mx - int(mx)) ) ) );
+ fields[1] = TQString("%1").tqarg( int(mx) );
+ fields.append( TQString("%1").tqarg( int( 60.0*(mx - int(mx)) ) ) );
} else {
fields.append( TQString( "0" ) );
}
@@ -113,9 +113,9 @@ TQTime timeBox::createTime ( bool *ok )
// ignore all after 3rd field
if ( fields.count() >= 3 ) {
- fields[0].replace( TQRegExp("h"), "" );
- fields[1].replace( TQRegExp("m"), "" );
- fields[2].replace( TQRegExp("s"), "" );
+ fields[0].tqreplace( TQRegExp("h"), "" );
+ fields[1].tqreplace( TQRegExp("m"), "" );
+ fields[2].tqreplace( TQRegExp("s"), "" );
}
//See if first two fields parse as integers.
//
@@ -141,7 +141,7 @@ TQTime timeBox::createTime ( bool *ok )
}
// if ( !valueFound )
-// KMessageBox::sorry( 0, errMsg.arg( "Angle" ), i18n( "Could Not Set Value" ) );
+// KMessageBox::sorry( 0, errMsg.tqarg( "Angle" ), i18n( "Could Not Set Value" ) );
return qt;
@@ -159,9 +159,9 @@ ExtDate timeBox::createDate (bool */*ok*/)
if ( !date.isValid() ) {
kdDebug() << k_funcinfo << "Invalid date" << endl;
- showDate(ExtDate::currentDate());
+ showDate(ExtDate::tqcurrentDate());
entry = text().stripWhiteSpace();
- return ExtDate::currentDate();
+ return ExtDate::tqcurrentDate();
} else {
return date;
}