Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/10/head
Michele Calgaro 4 months ago
parent f3c6af06ee
commit f4f3cbbebd
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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);
}

@ -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;

@ -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();

@ -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() {

Loading…
Cancel
Save