summaryrefslogtreecommitdiffstats
path: root/src/src/configure.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/src/configure.cpp')
-rw-r--r--src/src/configure.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/src/configure.cpp b/src/src/configure.cpp
index 4e10636..93258b1 100644
--- a/src/src/configure.cpp
+++ b/src/src/configure.cpp
@@ -21,13 +21,13 @@
#include "configure.h"
#include "knetstats.h"
-// Qt includes
-#include <qstringlist.h>
-#include <qlistbox.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qwidgetstack.h>
-#include <qpopupmenu.h>
+// TQt includes
+#include <tqstringlist.h>
+#include <tqlistbox.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqwidgetstack.h>
+#include <tqpopupmenu.h>
// Kde includes
#include <kapplication.h>
#include <klocale.h>
@@ -41,30 +41,30 @@
#include <kpushbutton.h>
-Configure::Configure(KNetStats* parent, const InterfaceMap& ifs) : ConfigureBase(parent) {
+Configure::Configure(KNetStats* tqparent, const InterfaceMap& ifs) : ConfigureBase(tqparent) {
// Load configuration
KIconLoader* loader = kapp->iconLoader();
- QPixmap iconPCI = loader->loadIcon("icon_pci.png", KIcon::Small, 16);
+ TQPixmap iconPCI = loader->loadIcon("icon_pci.png", KIcon::Small, 16);
// Clone the configuration.
for (InterfaceMap::ConstIterator it = ifs.begin(); it != ifs.end(); ++it) {
mInterfaces->insertItem(iconPCI, it.key());
mConfig[it.key()] = it.data()->options();
-// parent->readInterfaceOptions(*it, &mConfig[*it]);
+// tqparent->readInterfaceOptions(*it, &mConfig[*it]);
}
mInterfaces->setCurrentItem(0);
changeInterface(mInterfaces->selectedItem());
- connect(mInterfaces, SIGNAL(selectionChanged(QListBoxItem*)), this, SLOT(changeInterface(QListBoxItem*)));
- connect(mTheme, SIGNAL(activated(int)), this, SLOT(changeTheme(int)));
- //connect(mInterfaces, SIGNAL(contextMenuRequested(QListBoxItem*, const QPoint&)), this, SLOT(showInterfaceContextMenu(QListBoxItem*, const QPoint&)));
+ 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&)));
}
-void Configure::changeInterface(QListBoxItem* item) {
- QString interface = item->text();
+void Configure::changeInterface(TQListBoxItem* item) {
+ TQString interface = item->text();
if (!mCurrentItem.isEmpty())
{
@@ -132,24 +132,24 @@ bool Configure::canSaveConfig()
void Configure::changeTheme(int theme)
{
KIconLoader* loader = kapp->iconLoader();
- mIconError->setPixmap(loader->loadIcon("theme"+QString::number(theme)+"_error.png",
+ mIconError->setPixmap(loader->loadIcon("theme"+TQString::number(theme)+"_error.png",
KIcon::Panel, ICONSIZE));
- mIconNone->setPixmap(loader->loadIcon("theme"+QString::number(theme)+"_none.png",
+ mIconNone->setPixmap(loader->loadIcon("theme"+TQString::number(theme)+"_none.png",
KIcon::Panel, ICONSIZE));
- mIconTx->setPixmap(loader->loadIcon("theme"+QString::number(theme)+"_tx.png",
+ mIconTx->setPixmap(loader->loadIcon("theme"+TQString::number(theme)+"_tx.png",
KIcon::Panel, ICONSIZE));
- mIconRx->setPixmap(loader->loadIcon("theme"+QString::number(theme)+"_rx.png",
+ mIconRx->setPixmap(loader->loadIcon("theme"+TQString::number(theme)+"_rx.png",
KIcon::Panel, ICONSIZE));
- mIconBoth->setPixmap(loader->loadIcon("theme"+QString::number(theme)+"_both.png",
+ mIconBoth->setPixmap(loader->loadIcon("theme"+TQString::number(theme)+"_both.png",
KIcon::Panel, ICONSIZE));
}
/*
-void Configure::showInterfaceContextMenu(QListBoxItem* item, const QPoint& point) {
+void Configure::showInterfaceContextMenu(TQListBoxItem* item, const TQPoint& point) {
if (!item && mConfig.size() == 1)
return;
- QPixmap icon = kapp->iconLoader()->loadIcon("editdelete", KIcon::Small, 16);
- QPopupMenu* menu = new QPopupMenu(this);
- menu->insertItem(icon, i18n("Renomve Interface"), this, SLOT(removeInterface()));
+ TQPixmap icon = kapp->iconLoader()->loadIcon("editdelete", KIcon::Small, 16);
+ TQPopupMenu* menu = new TQPopupMenu(this);
+ menu->insertItem(icon, i18n("Renomve Interface"), this, TQT_SLOT(removeInterface()));
menu->exec(point);
}