summaryrefslogtreecommitdiffstats
path: root/plugins/upnp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/upnp')
-rw-r--r--plugins/upnp/upnpprefwidget.cpp10
-rw-r--r--plugins/upnp/upnpprefwidget.h4
-rw-r--r--plugins/upnp/upnpwidget.ui2
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>