diff options
-rw-r--r-- | src/src/configure.cpp | 18 | ||||
-rw-r--r-- | src/src/knetstatsview.cpp | 12 |
2 files changed, 15 insertions, 15 deletions
diff --git a/src/src/configure.cpp b/src/src/configure.cpp index 6923d0c..07eefc5 100644 --- a/src/src/configure.cpp +++ b/src/src/configure.cpp @@ -43,9 +43,9 @@ Configure::Configure(KNetStats* parent, const InterfaceMap& ifs) : ConfigureBase(parent) { // Load configuration - KIconLoader* loader = kapp->iconLoader(); + TDEIconLoader* loader = kapp->iconLoader(); - TQPixmap iconPCI = loader->loadIcon("icon_pci.png", KIcon::Small, 16); + TQPixmap iconPCI = loader->loadIcon("icon_pci.png", TDEIcon::Small, 16); // Clone the configuration. for (InterfaceMap::ConstIterator it = ifs.begin(); it != ifs.end(); ++it) { @@ -131,23 +131,23 @@ bool Configure::canSaveConfig() void Configure::changeTheme(int theme) { - KIconLoader* loader = kapp->iconLoader(); + TDEIconLoader* loader = kapp->iconLoader(); mIconError->setPixmap(loader->loadIcon("theme"+TQString::number(theme)+"_error.png", - KIcon::Panel, ICONSIZE)); + TDEIcon::Panel, ICONSIZE)); mIconNone->setPixmap(loader->loadIcon("theme"+TQString::number(theme)+"_none.png", - KIcon::Panel, ICONSIZE)); + TDEIcon::Panel, ICONSIZE)); mIconTx->setPixmap(loader->loadIcon("theme"+TQString::number(theme)+"_tx.png", - KIcon::Panel, ICONSIZE)); + TDEIcon::Panel, ICONSIZE)); mIconRx->setPixmap(loader->loadIcon("theme"+TQString::number(theme)+"_rx.png", - KIcon::Panel, ICONSIZE)); + TDEIcon::Panel, ICONSIZE)); mIconBoth->setPixmap(loader->loadIcon("theme"+TQString::number(theme)+"_both.png", - KIcon::Panel, ICONSIZE)); + TDEIcon::Panel, ICONSIZE)); } /* void Configure::showInterfaceContextMenu(TQListBoxItem* item, const TQPoint& point) { if (!item && mConfig.size() == 1) return; - TQPixmap icon = kapp->iconLoader()->loadIcon("editdelete", KIcon::Small, 16); + TQPixmap icon = kapp->iconLoader()->loadIcon("editdelete", TDEIcon::Small, 16); TQPopupMenu* menu = new TQPopupMenu(this); menu->insertItem(icon, i18n("Renomve Interface"), this, TQT_SLOT(removeInterface())); menu->exec(point); diff --git a/src/src/knetstatsview.cpp b/src/src/knetstatsview.cpp index 39af7c6..d107741 100644 --- a/src/src/knetstatsview.cpp +++ b/src/src/knetstatsview.cpp @@ -105,17 +105,17 @@ void KNetStatsView::setup() { setFont(mOptions.mTxtFont); else if (mOptions.mViewMode == Icon) { // Load Icons - KIconLoader* loader = kapp->iconLoader(); + TDEIconLoader* loader = kapp->iconLoader(); mIconError = loader->loadIcon("theme"+TQString::number(mOptions.mTheme)+"_error.png", - KIcon::Panel, ICONSIZE); + TDEIcon::Panel, ICONSIZE); mIconNone = loader->loadIcon("theme"+TQString::number(mOptions.mTheme)+"_none.png", - KIcon::Panel, ICONSIZE); + TDEIcon::Panel, ICONSIZE); mIconTx = loader->loadIcon("theme"+TQString::number(mOptions.mTheme)+"_tx.png", - KIcon::Panel, ICONSIZE); + TDEIcon::Panel, ICONSIZE); mIconRx =loader->loadIcon("theme"+TQString::number(mOptions.mTheme)+"_rx.png", - KIcon::Panel, ICONSIZE); + TDEIcon::Panel, ICONSIZE); mIconBoth = loader->loadIcon("theme"+TQString::number(mOptions.mTheme)+"_both.png", - KIcon::Panel, ICONSIZE); + TDEIcon::Panel, ICONSIZE); mCurrentIcon = &mIconNone; } mTimer->start(mOptions.mUpdateInterval); |