summaryrefslogtreecommitdiffstats
path: root/kradio3/src/standardscandialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 03:43:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-01 03:43:07 +0000
commit70b9eea2ba01c3691497f49e4c45cb070c16193c (patch)
tree9a6df61aa247a27275aad9c5245e419e89c2c640 /kradio3/src/standardscandialog.cpp
parent998c1384ace4ae4655997c181fa33242148cd0a4 (diff)
downloadtderadio-70b9eea2ba01c3691497f49e4c45cb070c16193c.tar.gz
tderadio-70b9eea2ba01c3691497f49e4c45cb070c16193c.zip
TQt4 port kradio
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kradio@1238952 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kradio3/src/standardscandialog.cpp')
-rw-r--r--kradio3/src/standardscandialog.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kradio3/src/standardscandialog.cpp b/kradio3/src/standardscandialog.cpp
index 32d5308..cccfac0 100644
--- a/kradio3/src/standardscandialog.cpp
+++ b/kradio3/src/standardscandialog.cpp
@@ -18,23 +18,23 @@
#include "include/standardscandialog.h"
#include "include/radiostation.h"
-#include <qprogressbar.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
+#include <tqprogressbar.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
#include <klocale.h>
#include <math.h>
-StandardScanDialog::StandardScanDialog(QWidget *parent)
- : StandardScanDialogUI(parent, NULL, true),
+StandardScanDialog::StandardScanDialog(TQWidget *tqparent)
+ : StandardScanDialogUI(tqparent, NULL, true),
m_count(0),
m_running(false),
m_oldPowerOn(false),
m_oldStation(NULL),
m_ignorePower(false)
{
- QObject::connect(buttonCancel, SIGNAL(clicked()), this, SLOT(slotCancelDone()));
+ TQObject::connect(buttonCancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCancelDone()));
}
@@ -67,7 +67,7 @@ void StandardScanDialog::start()
if (!m_running) {
m_running = true;
m_stations.all().clear();
- m_startTime = QDateTime::currentDateTime();
+ m_startTime = TQDateTime::tqcurrentDateTime();
m_oldPowerOn = queryIsPowerOn();
m_oldStation = queryCurrentStation().copy();
sendToBeginning();
@@ -110,7 +110,7 @@ bool StandardScanDialog::noticeSeekFinished (const RadioStation &, bool goodQual
{
if (goodQuality) {
++m_count;
- QString s;
+ TQString s;
s.setNum(m_count);
RadioStation *st = queryCurrentStation().copy();
@@ -153,11 +153,11 @@ bool StandardScanDialog::noticeProgress (float f)
progressBar->setProgress((int)rint(f * 100));
if (m_running) {
- int secs = m_startTime.secsTo(QDateTime::currentDateTime());
+ int secs = m_startTime.secsTo(TQDateTime::tqcurrentDateTime());
int ms = (int)rint((1 - f) * (float) secs / f * 1000.0);
if (ms > 0 && ms < 86400000) // max one day
- labelTime->setText(i18n("<p align=\"right\">%1</p>").arg(QTime(0,0).addMSecs(ms).toString()));
+ labelTime->setText(i18n("<p align=\"right\">%1</p>").tqarg(TQTime(0,0).addMSecs(ms).toString()));
else
labelTime->setText(i18n("unknown"));