summaryrefslogtreecommitdiffstats
path: root/src/libgui/device_gui.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:05:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:05:21 -0600
commit6f617c4181afa90f3eba14139d4f92eb98834899 (patch)
tree8b1b3f1b1834eeca086e1b6948e926d726f3b025 /src/libgui/device_gui.cpp
parentb42d04f596e5440b17d954ba9e24d55368030120 (diff)
downloadpiklab-6f617c4181afa90f3eba14139d4f92eb98834899.tar.gz
piklab-6f617c4181afa90f3eba14139d4f92eb98834899.zip
Rename a number of classes to enhance compatibility with KDE4
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();