summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-05 10:34:39 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-05 10:34:39 +0900
commitf4f3cbbebd58e8f44df1d4dbc7d576ed0c891eac (patch)
tree5eeb41840d41631ca4503d814aca21a8e6ad0a3f
parentf3c6af06ee2ac9d6a4fc7e0346eff7b67ea04610 (diff)
downloadknetstats-f4f3cbbebd58e8f44df1d4dbc7d576ed0c891eac.tar.gz
knetstats-f4f3cbbebd58e8f44df1d4dbc7d576ed0c891eac.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--src/configure.cpp8
-rw-r--r--src/knetstats.cpp14
-rw-r--r--src/knetstatsview.cpp2
-rw-r--r--src/statistics.cpp4
4 files changed, 14 insertions, 14 deletions
diff --git a/src/configure.cpp b/src/configure.cpp
index f3ffcff..b6360b4 100644
--- a/src/configure.cpp
+++ b/src/configure.cpp
@@ -58,9 +58,9 @@ Configure::Configure(KNetStats* parent, const InterfaceMap& ifs) : ConfigureBase
mInterfaces->setCurrentItem(0);
changeInterface(mInterfaces->selectedItem());
- connect(mInterfaces, TQT_SIGNAL(selectionChanged(TQListBoxItem*)), this, TQT_SLOT(changeInterface(TQListBoxItem*)));
- connect(mTheme, TQT_SIGNAL(activated(int)), this, TQT_SLOT(changeTheme(int)));
- //connect(mInterfaces, TQT_SIGNAL(contextMenuRequested(TQListBoxItem*, const TQPoint&)), this, TQT_SLOT(showInterfaceContextMenu(TQListBoxItem*, const TQPoint&)));
+ connect(mInterfaces, TQ_SIGNAL(selectionChanged(TQListBoxItem*)), this, TQ_SLOT(changeInterface(TQListBoxItem*)));
+ connect(mTheme, TQ_SIGNAL(activated(int)), this, TQ_SLOT(changeTheme(int)));
+ //connect(mInterfaces, TQ_SIGNAL(contextMenuRequested(TQListBoxItem*, const TQPoint&)), this, TQ_SLOT(showInterfaceContextMenu(TQListBoxItem*, const TQPoint&)));
}
void Configure::changeInterface(TQListBoxItem* item) {
@@ -149,7 +149,7 @@ void Configure::showInterfaceContextMenu(TQListBoxItem* item, const TQPoint& poi
return;
TQPixmap icon = kapp->iconLoader()->loadIcon("edit-delete", TDEIcon::Small, 16);
TQPopupMenu* menu = new TQPopupMenu(this);
- menu->insertItem(icon, i18n("Renomve Interface"), this, TQT_SLOT(removeInterface()));
+ menu->insertItem(icon, i18n("Renomve Interface"), this, TQ_SLOT(removeInterface()));
menu->exec(point);
}
diff --git a/src/knetstats.cpp b/src/knetstats.cpp
index 8f0de31..6f6548f 100644
--- a/src/knetstats.cpp
+++ b/src/knetstats.cpp
@@ -54,7 +54,7 @@ KNetStats::KNetStats() : TQWidget(0, "knetstats"), mConfigure(0), mBoot(true) {
mBoot = false;
TQTimer* timer = new TQTimer(this);
- connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(detectNewInterfaces()));
+ connect(timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(detectNewInterfaces()));
timer->start(IF_DETECTION_INTERVAL);
}
@@ -70,17 +70,17 @@ void KNetStats::setupUi() {
mActionCollection = new TDEActionCollection(this);
mContextMenu = new TDEPopupMenu(this);
mContextMenu->insertTitle( kapp->miniIcon(), kapp->caption() );
- TDEAction* configure = KStdAction::preferences(this, TQT_SLOT(configure()), mActionCollection, "configure");
+ TDEAction* configure = KStdAction::preferences(this, TQ_SLOT(configure()), mActionCollection, "configure");
configure->plug(mContextMenu);
mContextMenu->insertSeparator();
KHelpMenu* helpmenu = new KHelpMenu(this, TQString(), false);
mContextMenu->insertItem( i18n("&Help"), helpmenu->menu() );
mContextMenu->insertSeparator();
- TDEAction* quitAction = KStdAction::quit(kapp, TQT_SLOT(quit()), mActionCollection);
+ TDEAction* quitAction = KStdAction::quit(kapp, TQ_SLOT(quit()), mActionCollection);
quitAction->plug(mContextMenu);
- connect(helpmenu, TQT_SIGNAL(showAboutApplication()), this, TQT_SLOT(about()));
+ connect(helpmenu, TQ_SIGNAL(showAboutApplication()), this, TQ_SLOT(about()));
}
TQStringList KNetStats::scanInterfaces() {
@@ -106,9 +106,9 @@ bool KNetStats::configure() {
}*/
mConfigure = new Configure(this, mInterfaces);
- connect(mConfigure->mOk, TQT_SIGNAL(clicked()), this, TQT_SLOT(configOk()));
- connect(mConfigure->mApply, TQT_SIGNAL(clicked()), this, TQT_SLOT(configApply()));
- connect(mConfigure->mCancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(configCancel()));
+ connect(mConfigure->mOk, TQ_SIGNAL(clicked()), this, TQ_SLOT(configOk()));
+ connect(mConfigure->mApply, TQ_SIGNAL(clicked()), this, TQ_SLOT(configApply()));
+ connect(mConfigure->mCancel, TQ_SIGNAL(clicked()), this, TQ_SLOT(configCancel()));
mConfigure->show();
}
return true;
diff --git a/src/knetstatsview.cpp b/src/knetstatsview.cpp
index 828413f..b127642 100644
--- a/src/knetstatsview.cpp
+++ b/src/knetstatsview.cpp
@@ -87,7 +87,7 @@ KNetStatsView::KNetStatsView(KNetStats* parent, const TQString& interface)
// Timer
mTimer = new TQTimer(this, "timer");
- connect(mTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(updateStats(void)));
+ connect(mTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(updateStats(void)));
TQToolTip::add(this, i18n("Monitoring %1").arg(mInterface));
setup();
diff --git a/src/statistics.cpp b/src/statistics.cpp
index 6097be1..3eec9db 100644
--- a/src/statistics.cpp
+++ b/src/statistics.cpp
@@ -43,8 +43,8 @@ Statistics::Statistics( KNetStatsView* parent, const char *name )
update();
mTimer = new TQTimer( this );
- connect( mTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( update() ) );
- connect( mTimer, TQT_SIGNAL( timeout() ), chart, TQT_SLOT( update() ) );
+ connect( mTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( update() ) );
+ connect( mTimer, TQ_SIGNAL( timeout() ), chart, TQ_SLOT( update() ) );
}
void Statistics::update() {