summaryrefslogtreecommitdiffstats
path: root/kcontrol/hwmanager/hwmanager.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-04-14 16:50:36 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-04-14 16:50:36 -0500
commitfef13c17861a7510ef4564550fc041ba62f3f0a2 (patch)
tree5384fb2ee2e43bbc174fd954c3022ddd628c8a5d /kcontrol/hwmanager/hwmanager.cpp
parenta305372e2d3e45e84c0c484114be894985747709 (diff)
downloadtdebase-fef13c17861a7510ef4564550fc041ba62f3f0a2.tar.gz
tdebase-fef13c17861a7510ef4564550fc041ba62f3f0a2.zip
Show system properties
Diffstat (limited to 'kcontrol/hwmanager/hwmanager.cpp')
-rw-r--r--kcontrol/hwmanager/hwmanager.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/kcontrol/hwmanager/hwmanager.cpp b/kcontrol/hwmanager/hwmanager.cpp
index 71b47aac0..055425154 100644
--- a/kcontrol/hwmanager/hwmanager.cpp
+++ b/kcontrol/hwmanager/hwmanager.cpp
@@ -139,13 +139,11 @@ void TDEHWManager::populateTreeView()
base->deviceTree->clear();
if (show_by_connection) {
- DeviceIconItem* rootitem = new DeviceIconItem(base->deviceTree, "Linux System", DesktopIcon("misc", base->deviceTree->iconSize()), 0);
-
TDEHardwareDevices *hwdevices = KGlobal::hardwareDevices();
- TDEGenericHardwareList hwlist = hwdevices->listByDeviceClass(TDEGenericDeviceType::Root);
+ TDEGenericHardwareList hwlist = hwdevices->listByDeviceClass(TDEGenericDeviceType::RootSystem);
TDEGenericDevice *hwdevice;
for ( hwdevice = hwlist.first(); hwdevice; hwdevice = hwlist.next() ) {
- DeviceIconItem* item = new DeviceIconItem(rootitem, hwdevice->friendlyName(), hwdevice->icon(base->deviceTree->iconSize()), hwdevice);
+ DeviceIconItem* item = new DeviceIconItem(base->deviceTree, hwdevice->friendlyName(), hwdevice->icon(base->deviceTree->iconSize()), hwdevice);
if ((!selected_syspath.isNull()) && (hwdevice->systemPath() == selected_syspath)) {
base->deviceTree->ensureItemVisible(item);
base->deviceTree->setSelected(item, true);