summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-04 14:03:59 -0600
committerTimothy Pearson <[email protected]>2013-02-04 14:03:59 -0600
commit90ccb026e129b12dba65fbef66376d2122e5ba51 (patch)
tree29ebdbfd82b60750920e9f928b2654e2b670693e /src
parentfe573833ca08d8fdb0ea2ce036690666222b5e03 (diff)
downloadknetstats-90ccb026e129b12dba65fbef66376d2122e5ba51.tar.gz
knetstats-90ccb026e129b12dba65fbef66376d2122e5ba51.zip
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'src')
-rw-r--r--src/src/configure.cpp18
-rw-r--r--src/src/knetstatsview.cpp12
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);