diff options
author | Michele Calgaro <[email protected]> | 2024-01-01 17:47:34 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-01 17:47:34 +0900 |
commit | 27fd576acbb8b9453dadd7d1ae949396eef8fc12 (patch) | |
tree | ee739b602572a496ce9ca24318cf1b371dbd7174 /plugins/scheduler | |
parent | 09d3e49e01a4b798762fd505810b092fd0c77b47 (diff) | |
download | ktorrent-27fd576acbb8b9453dadd7d1ae949396eef8fc12.tar.gz ktorrent-27fd576acbb8b9453dadd7d1ae949396eef8fc12.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'plugins/scheduler')
-rw-r--r-- | plugins/scheduler/bwsprefpagewidget.cpp | 20 | ||||
-rw-r--r-- | plugins/scheduler/bwswidget.cpp | 4 | ||||
-rw-r--r-- | plugins/scheduler/schedulerplugin.cpp | 6 | ||||
-rw-r--r-- | plugins/scheduler/schedulerprefpagewidget.cpp | 2 |
4 files changed, 16 insertions, 16 deletions
diff --git a/plugins/scheduler/bwsprefpagewidget.cpp b/plugins/scheduler/bwsprefpagewidget.cpp index 38ab296..2c342f4 100644 --- a/plugins/scheduler/bwsprefpagewidget.cpp +++ b/plugins/scheduler/bwsprefpagewidget.cpp @@ -93,16 +93,16 @@ namespace kt pix52->setPixmap(TQPixmap(locate("data", TQString("ktorrent/icons/cell-a-0004.png")))); } - connect(radio1, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); - connect(radio2, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); - connect(radio3, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); - connect(radio4, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); - connect(radio5, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); - connect(radio12, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); - connect(radio22, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); - connect(radio32, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); - connect(radio42, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); - connect(radio52, TQT_SIGNAL(stateChanged(int)), this, TQT_SLOT(categoryChanged(int))); + connect(radio1, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int))); + connect(radio2, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int))); + connect(radio3, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int))); + connect(radio4, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int))); + connect(radio5, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int))); + connect(radio12, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int))); + connect(radio22, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int))); + connect(radio32, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int))); + connect(radio42, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int))); + connect(radio52, TQ_SIGNAL(stateChanged(int)), this, TQ_SLOT(categoryChanged(int))); //pre-check default categories (say 1 for left and 0 for right) radio2->setChecked(true); diff --git a/plugins/scheduler/bwswidget.cpp b/plugins/scheduler/bwswidget.cpp index da37f06..4423458 100644 --- a/plugins/scheduler/bwswidget.cpp +++ b/plugins/scheduler/bwswidget.cpp @@ -101,8 +101,8 @@ namespace kt setHScrollBarMode(TQTable::AlwaysOff); setVScrollBarMode(TQTable::AlwaysOff); - connect(this, TQT_SIGNAL(currentChanged( int, int )), this, TQT_SLOT(cellSelectionChanged( int, int ))); - connect(this, TQT_SIGNAL(pressed(int, int, int, const TQPoint&)), this, TQT_SLOT(cellMouseDown(int, int, int, const TQPoint& ))); + connect(this, TQ_SIGNAL(currentChanged( int, int )), this, TQ_SLOT(cellSelectionChanged( int, int ))); + connect(this, TQ_SIGNAL(pressed(int, int, int, const TQPoint&)), this, TQ_SLOT(cellMouseDown(int, int, int, const TQPoint& ))); } BWSWidget::~BWSWidget() diff --git a/plugins/scheduler/schedulerplugin.cpp b/plugins/scheduler/schedulerplugin.cpp index d0b8f68..e0a71e7 100644 --- a/plugins/scheduler/schedulerplugin.cpp +++ b/plugins/scheduler/schedulerplugin.cpp @@ -60,7 +60,7 @@ namespace kt { setXMLFile("ktschedulerpluginui.rc"); bws_action = 0; - connect(&m_timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timer_triggered())); + connect(&m_timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timer_triggered())); } @@ -95,7 +95,7 @@ namespace kt // updateEnabledBWS(); bws_action = new TDEAction(i18n("Open Bandwidth Scheduler" ), "clock", 0, this, - TQT_SLOT(openBWS()), actionCollection(), "bwscheduler" ); + TQ_SLOT(openBWS()), actionCollection(), "bwscheduler" ); } void SchedulerPlugin::unload() @@ -135,7 +135,7 @@ namespace kt if(SchedulerPluginSettings::enableBWS()) { bws_action = new TDEAction(i18n("Open Bandwidth Scheduler" ), "clock", 0, this, - TQT_SLOT(openBWS()), actionCollection(), "bwscheduler" ); + TQ_SLOT(openBWS()), actionCollection(), "bwscheduler" ); } else { diff --git a/plugins/scheduler/schedulerprefpagewidget.cpp b/plugins/scheduler/schedulerprefpagewidget.cpp index 65d600b..156f46f 100644 --- a/plugins/scheduler/schedulerprefpagewidget.cpp +++ b/plugins/scheduler/schedulerprefpagewidget.cpp @@ -61,7 +61,7 @@ namespace kt /* force trigger since the schedule has changed but after KTorrent::apply() * Used TQTimer with fixed interval - not very nice solution... */ if(useBS->isChecked()) - TQTimer::singleShot(1000, this, TQT_SLOT(scheduler_trigger())); + TQTimer::singleShot(1000, this, TQ_SLOT(scheduler_trigger())); BWScheduler::instance().setEnabled(use_bws); } |