diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:04:44 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:04:44 -0600 |
commit | 4ba6286d9eaa3754119526dc1ac3435a341549cb (patch) | |
tree | 92749c4fa4e554fd060c8ac9aeb4d1490f05141c /plugins/upnp | |
parent | 2cf12b3b4be272da465791312b82cfcc77704b9d (diff) | |
download | ktorrent-4ba6286d9eaa3754119526dc1ac3435a341549cb.tar.gz ktorrent-4ba6286d9eaa3754119526dc1ac3435a341549cb.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'plugins/upnp')
-rw-r--r-- | plugins/upnp/upnpprefwidget.cpp | 10 | ||||
-rw-r--r-- | plugins/upnp/upnpprefwidget.h | 4 | ||||
-rw-r--r-- | plugins/upnp/upnpwidget.ui | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/plugins/upnp/upnpprefwidget.cpp b/plugins/upnp/upnpprefwidget.cpp index 9b4c453..fba0c34 100644 --- a/plugins/upnp/upnpprefwidget.cpp +++ b/plugins/upnp/upnpprefwidget.cpp @@ -73,7 +73,7 @@ namespace kt void UPnPPrefWidget::addDevice(UPnPRouter* r) { connect(r,TQT_SIGNAL(updateGUI()),this,TQT_SLOT(updatePortMappings())); - KListViewItem* item = new KListViewItem(m_device_list,r->getDescription().friendlyName); + TDEListViewItem* item = new TDEListViewItem(m_device_list,r->getDescription().friendlyName); item->setMultiLinesEnabled(true); itemmap[item] = r; // if we have discovered the default device or there is none @@ -107,7 +107,7 @@ namespace kt void UPnPPrefWidget::onForwardBtnClicked() { - KListViewItem* item = (KListViewItem*)m_device_list->currentItem();; + TDEListViewItem* item = (TDEListViewItem*)m_device_list->currentItem();; if (!item) return; @@ -149,7 +149,7 @@ namespace kt void UPnPPrefWidget::onUndoForwardBtnClicked() { - KListViewItem* item = (KListViewItem*)m_device_list->currentItem();; + TDEListViewItem* item = (TDEListViewItem*)m_device_list->currentItem();; if (!item) return; @@ -186,11 +186,11 @@ namespace kt void UPnPPrefWidget::updatePortMappings() { // update all port mappings - TQMap<KListViewItem*,UPnPRouter*>::iterator i = itemmap.begin(); + TQMap<TDEListViewItem*,UPnPRouter*>::iterator i = itemmap.begin(); while (i != itemmap.end()) { UPnPRouter* r = i.data(); - KListViewItem* item = i.key(); + TDEListViewItem* item = i.key(); TQString msg,services; TQValueList<UPnPRouter::Forwarding>::iterator j = r->beginPortMappings(); while (j != r->endPortMappings()) diff --git a/plugins/upnp/upnpprefwidget.h b/plugins/upnp/upnpprefwidget.h index 9be0a24..272e0a2 100644 --- a/plugins/upnp/upnpprefwidget.h +++ b/plugins/upnp/upnpprefwidget.h @@ -25,7 +25,7 @@ #include "upnprouter.h" #include "upnpwidget.h" -class KListViewItem; +class TDEListViewItem; namespace bt { @@ -75,7 +75,7 @@ namespace kt virtual void portRemoved(const net::Port & port); private: - TQMap<KListViewItem*,UPnPRouter*> itemmap; + TQMap<TDEListViewItem*,UPnPRouter*> itemmap; UPnPRouter* def_router; }; } diff --git a/plugins/upnp/upnpwidget.ui b/plugins/upnp/upnpwidget.ui index d06576a..3bc2408 100644 --- a/plugins/upnp/upnpwidget.ui +++ b/plugins/upnp/upnpwidget.ui @@ -35,7 +35,7 @@ <string>Detected devices:</string> </property> </widget> - <widget class="KListView"> + <widget class="TDEListView"> <column> <property name="text"> <string>Device</string> |