summaryrefslogtreecommitdiffstats
path: root/src/libgui/device_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgui/device_gui.cpp')
-rw-r--r--src/libgui/device_gui.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libgui/device_gui.cpp b/src/libgui/device_gui.cpp
index e5c6d4a..0ca3b32 100644
--- a/src/libgui/device_gui.cpp
+++ b/src/libgui/device_gui.cpp
@@ -50,15 +50,15 @@ const Tool::Group *DeviceChooser::Config::toolGroup()
}
//-----------------------------------------------------------------------------
-class ListItem : public KListViewItem
+class ListItem : public TDEListViewItem
{
public:
- ListItem(KListView *list, const TQString &name, bool selectable, bool isDevice)
- : KListViewItem(list, name), _device(isDevice) {
+ ListItem(TDEListView *list, const TQString &name, bool selectable, bool isDevice)
+ : TDEListViewItem(list, name), _device(isDevice) {
setSelectable(selectable);
}
- ListItem(KListViewItem *item, const TQString &name)
- : KListViewItem(item, name), _device(true) {}
+ ListItem(TDEListViewItem *item, const TQString &name)
+ : TDEListViewItem(item, name), _device(true) {}
bool isDevice() const { return _device; }
virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int align) {
@@ -68,7 +68,7 @@ public:
Q_ASSERT(device);
ncg.setColor(TQColorGroup::Text, Device::statusColor(device->status()));
}
- KListViewItem::paintCell(p, ncg, column, width, align);
+ TDEListViewItem::paintCell(p, ncg, column, width, align);
}
private:
@@ -164,7 +164,7 @@ DeviceChooser::Dialog::Dialog(const TQString &device, Type type, TQWidget *paren
widths += 500;
Splitter *splitter = new Splitter(widths,Qt::Horizontal, mainWidget(), "device_shooser_splitter");
top->addWidget(splitter, 1);
- _listView = new KListView(splitter);
+ _listView = new TDEListView(splitter);
connect(_listView, TQT_SIGNAL(currentChanged(TQListViewItem *)),
TQT_SLOT(currentChanged(TQListViewItem *)));
connect(_listView, TQT_SIGNAL(doubleClicked(TQListViewItem *, const TQPoint &, int)),
@@ -256,7 +256,7 @@ const Tool::Group *DeviceChooser::Dialog::toolGroup() const
void DeviceChooser::Dialog::updateList(const TQString &device)
{
TQValueVector<TQString> list = Device::lister().supportedDevices();
- TQMap<TQString, KListViewItem *> groups;
+ TQMap<TQString, TDEListViewItem *> groups;
TQListViewItem *selected = 0;
const Programmer::Group *pgroup = programmerGroup();
if ( pgroup && pgroup->supportedDevices().isEmpty() && pgroup->isSoftware() ) {
@@ -279,7 +279,7 @@ void DeviceChooser::Dialog::updateList(const TQString &device)
if ( data->group().name()!="pic" ) continue;
if ( !static_cast<const Pic::Data *>(data)->hasFeature(_featureCombo->value()) ) continue;
}
- KListViewItem *item = 0;
+ TDEListViewItem *item = 0;
switch (_listTypeCombo->value().type()) {
case ListType::FamilyTree: {
TQString gname = data->listViewGroup();