From 1c1403293485f35fd53db45aaa77a01cdd9627e7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 28 Jun 2011 20:34:15 +0000 Subject: TQt4 port ktorrent This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- plugins/scheduler/schedulerplugin.cpp | 40 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'plugins/scheduler/schedulerplugin.cpp') diff --git a/plugins/scheduler/schedulerplugin.cpp b/plugins/scheduler/schedulerplugin.cpp index 7639293..9177ebb 100644 --- a/plugins/scheduler/schedulerplugin.cpp +++ b/plugins/scheduler/schedulerplugin.cpp @@ -24,9 +24,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include @@ -50,17 +50,17 @@ K_EXPORT_COMPONENT_FACTORY(ktschedulerplugin,KGenericFactoryaddPrefPage(Pref); BWScheduler::instance().setCoreInterface(getCore()); - QDateTime now = QDateTime::currentDateTime(); + TQDateTime now = TQDateTime::tqcurrentDateTime(); //each hour - QDateTime hour = now.addSecs(3600); - QTime t(hour.time().hour(), 0); + TQDateTime hour = now.addSecs(3600); + TQTime t(hour.time().hour(), 0); //each minute -// QDateTime hour = now.addSecs(60); -// QTime t(hour.time().hour(), hour.time().minute()); +// TQDateTime hour = now.addSecs(60); +// TQTime t(hour.time().hour(), hour.time().minute()); - QDateTime round(hour.date(), t); + TQDateTime round(hour.date(), t); // add a 5 second safety margin (BUG: 131246) int secs_to = now.secsTo(round) + 5; @@ -95,7 +95,7 @@ namespace kt // updateEnabledBWS(); bws_action = new KAction(i18n("Open Bandwidth Scheduler" ), "clock", 0, this, - SLOT(openBWS()), actionCollection(), "bwscheduler" ); + TQT_SLOT(openBWS()), actionCollection(), "bwscheduler" ); } void SchedulerPlugin::unload() @@ -115,7 +115,7 @@ namespace kt void SchedulerPlugin::timer_triggered() { m_timer.changeInterval(3600*1000); - QDateTime now = QDateTime::currentDateTime(); + TQDateTime now = TQDateTime::tqcurrentDateTime(); BWScheduler::instance().trigger(); } @@ -135,7 +135,7 @@ namespace kt if(SchedulerPluginSettings::enableBWS()) { bws_action = new KAction(i18n("Open Bandwidth Scheduler" ), "clock", 0, this, - SLOT(openBWS()), actionCollection(), "bwscheduler" ); + TQT_SLOT(openBWS()), actionCollection(), "bwscheduler" ); } else { @@ -145,7 +145,7 @@ namespace kt } } - bool SchedulerPlugin::versionCheck(const QString & version) const + bool SchedulerPlugin::versionCheck(const TQString & version) const { return version == KT_VERSION_MACRO; } -- cgit v1.2.1