diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-04 14:08:00 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-04 14:08:00 -0600 |
commit | b1c5bea50ae48c54b476428a21dfe594916cb6ae (patch) | |
tree | e539752d1770664512c64f03285d40bd2b07b0c8 /plugins/infowidget | |
parent | 0889370e3050561372c3816dfb2902771ca83765 (diff) | |
download | ktorrent-b1c5bea50ae48c54b476428a21dfe594916cb6ae.tar.gz ktorrent-b1c5bea50ae48c54b476428a21dfe594916cb6ae.zip |
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'plugins/infowidget')
-rw-r--r-- | plugins/infowidget/fileview.cpp | 2 | ||||
-rw-r--r-- | plugins/infowidget/infowidgetprefpage.cpp | 2 | ||||
-rw-r--r-- | plugins/infowidget/peerview.cpp | 12 | ||||
-rw-r--r-- | plugins/infowidget/trackerview.cpp | 10 |
4 files changed, 13 insertions, 13 deletions
diff --git a/plugins/infowidget/fileview.cpp b/plugins/infowidget/fileview.cpp index 7776ec7..1e4b87b 100644 --- a/plugins/infowidget/fileview.cpp +++ b/plugins/infowidget/fileview.cpp @@ -139,7 +139,7 @@ namespace kt s.torrent_name, BytesToString(s.total_bytes)); - item->setPixmap(0,KMimeType::findByPath(s.torrent_name)->pixmap(KIcon::Small)); + item->setPixmap(0,KMimeType::findByPath(s.torrent_name)->pixmap(TDEIcon::Small)); setEnabled(true); connect(curr_tc,TQT_SIGNAL(missingFilesMarkedDND( kt::TorrentInterface* )), this,TQT_SLOT(refreshFileTree( kt::TorrentInterface* ))); diff --git a/plugins/infowidget/infowidgetprefpage.cpp b/plugins/infowidget/infowidgetprefpage.cpp index 2e94116..4ddd0dd 100644 --- a/plugins/infowidget/infowidgetprefpage.cpp +++ b/plugins/infowidget/infowidgetprefpage.cpp @@ -31,7 +31,7 @@ namespace kt { InfoWidgetPrefPage::InfoWidgetPrefPage(InfoWidgetPlugin* iw) - : PrefPageInterface(i18n("Info Widget"),i18n("Information Widget Options"),TDEGlobal::iconLoader()->loadIcon("ktinfowidget",KIcon::NoGroup)),iw(iw) + : PrefPageInterface(i18n("Info Widget"),i18n("Information Widget Options"),TDEGlobal::iconLoader()->loadIcon("ktinfowidget",TDEIcon::NoGroup)),iw(iw) { pref = 0; } diff --git a/plugins/infowidget/peerview.cpp b/plugins/infowidget/peerview.cpp index 26628cd..4fccbc4 100644 --- a/plugins/infowidget/peerview.cpp +++ b/plugins/infowidget/peerview.cpp @@ -65,13 +65,13 @@ namespace kt { if (!yes_no_pix_loaded) { - KIconLoader* iload = TDEGlobal::iconLoader(); + TDEIconLoader* iload = TDEGlobal::iconLoader(); /* Prefer builtin flag images to the ones provided by KDE */ flagDB.addFlagSource("data", TQString("ktorrent/geoip/%1.png")); flagDB.addFlagSource("locale", TQString("l10n/%1/flag.png")); - yes_pix = iload->loadIcon("button_ok",KIcon::Small); - no_pix = iload->loadIcon("button_cancel",KIcon::Small); - lock_pix = iload->loadIcon("ktencrypted",KIcon::Small); + yes_pix = iload->loadIcon("button_ok",TDEIcon::Small); + no_pix = iload->loadIcon("button_cancel",TDEIcon::Small); + lock_pix = iload->loadIcon("ktencrypted",TDEIcon::Small); #ifdef USE_SYSTEM_GEOIP geo_ip = GeoIP_open_type(GEOIP_COUNTRY_EDITION, GEOIP_STANDARD); geoip_db_exists = (geo_ip != NULL); @@ -246,8 +246,8 @@ namespace kt setShowSortIndicator(true); menu = new TDEPopupMenu(this); - kick_id = menu->insertItem(TDEGlobal::iconLoader()->loadIcon("delete_user", KIcon::NoGroup), i18n("to kick", "Kick peer")); - ban_id = menu->insertItem(TDEGlobal::iconLoader()->loadIcon("filter",KIcon::NoGroup), i18n("to ban", "Ban peer")); + kick_id = menu->insertItem(TDEGlobal::iconLoader()->loadIcon("delete_user", TDEIcon::NoGroup), i18n("to kick", "Kick peer")); + ban_id = menu->insertItem(TDEGlobal::iconLoader()->loadIcon("filter",TDEIcon::NoGroup), i18n("to ban", "Ban peer")); connect(this,TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint& )), this,TQT_SLOT(showContextMenu(TDEListView*, TQListViewItem*, const TQPoint& ))); diff --git a/plugins/infowidget/trackerview.cpp b/plugins/infowidget/trackerview.cpp index 1e3d6e2..c689f26 100644 --- a/plugins/infowidget/trackerview.cpp +++ b/plugins/infowidget/trackerview.cpp @@ -46,11 +46,11 @@ namespace kt TrackerView::TrackerView(TQWidget *parent, const char *name) :TrackerViewBase(parent, name), tc(0) { - KIconLoader* iload = TDEGlobal::iconLoader(); - btnUpdate->setIconSet(iload->loadIconSet("apply", KIcon::Small)); - btnAdd->setIconSet(iload->loadIconSet("add", KIcon::Small)); - btnRemove->setIconSet(iload->loadIconSet("remove", KIcon::Small)); - btnRestore->setIconSet(iload->loadIconSet("undo", KIcon::Small)); + TDEIconLoader* iload = TDEGlobal::iconLoader(); + btnUpdate->setIconSet(iload->loadIconSet("apply", TDEIcon::Small)); + btnAdd->setIconSet(iload->loadIconSet("add", TDEIcon::Small)); + btnRemove->setIconSet(iload->loadIconSet("remove", TDEIcon::Small)); + btnRestore->setIconSet(iload->loadIconSet("undo", TDEIcon::Small)); TQPalette p = lblCurrent->palette(); p.setColor(TQPalette::Active,TQColorGroup::Base,p.color(TQPalette::Active,TQColorGroup::Background)); |