diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:05:56 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:05:56 -0600 |
commit | 2a081fc8bfcf498b558c5c5434069572f6245b8e (patch) | |
tree | afad48e0a2769d1079cbc6af0d890bd2e0e1dbbf /displayconfig | |
parent | 671df160874c6e4ff50b230a5e5f1eb35f1c6464 (diff) | |
download | tde-guidance-2a081fc8bfcf498b558c5c5434069572f6245b8e.tar.gz tde-guidance-2a081fc8bfcf498b558c5c5434069572f6245b8e.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'displayconfig')
-rwxr-xr-x | displayconfig/displayconfig.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/displayconfig/displayconfig.py b/displayconfig/displayconfig.py index 30d2693..a7c5ede 100755 --- a/displayconfig/displayconfig.py +++ b/displayconfig/displayconfig.py @@ -61,18 +61,18 @@ class GfxCardDialog(KDialogBase): self.setMainWidget(topbox) label = QLabel(topbox) label.setText(i18n("Select Graphics Card:")) - self.listview = KListView(topbox) + self.listview = TDEListView(topbox) self.listview.addColumn("") self.listview.header().hide() self.listview.setRootIsDecorated(True) self.connect(self.listview,SIGNAL("selectionChanged(QListViewItem *)"),self.slotListClicked) topbox.setStretchFactor(self.listview,1) - self.driver = KListViewItem(self.listview) + self.driver = TDEListViewItem(self.listview) self.driver.setText(0,i18n("Drivers")) self.driver.setSelectable(False) - self.manufacturer = KListViewItem(self.listview) + self.manufacturer = TDEListViewItem(self.listview) self.manufacturer.setText(0,i18n("Manufacturers")) self.manufacturer.setSelectable(False) @@ -128,11 +128,11 @@ class GfxCardDialog(KDialogBase): keys.sort() for key in keys: cardkeys = self.gfxcarddb.vendordb[key].keys() - vendoritem = KListViewItem(self.manufacturer) + vendoritem = TDEListViewItem(self.manufacturer) vendoritem.setText(0,key) vendoritem.setSelectable(False) for cardkey in cardkeys: - item = KListViewItem(vendoritem) + item = TDEListViewItem(vendoritem) item.setText(0,cardkey) self.card2listitem[self.gfxcarddb.vendordb[key][cardkey]] = item @@ -140,7 +140,7 @@ class GfxCardDialog(KDialogBase): drivers = gfxcarddb.driverdb.keys() drivers.sort() for driver in drivers: - driveritem = KListViewItem(self.driver) + driveritem = TDEListViewItem(self.driver) driveritem.setText(0,driver) self.card2listitem[gfxcarddb.driverdb[driver]] = driveritem @@ -233,17 +233,17 @@ class MonitorDialog(KDialogBase): self.setMainWidget(topbox) label = QLabel(topbox) label.setText(i18n("Select Monitor:")) - self.listview = KListView(topbox) + self.listview = TDEListView(topbox) self.listview.addColumn("") self.listview.header().hide() self.listview.setRootIsDecorated(True) self.connect(self.listview,SIGNAL("selectionChanged(QListViewItem *)"),self.slotListClicked) - self.generic = KListViewItem(self.listview) + self.generic = TDEListViewItem(self.listview) self.generic.setText(0,i18n("Generic")) self.generic.setSelectable(False) - self.manufacturer = KListViewItem(self.listview) + self.manufacturer = TDEListViewItem(self.listview) self.manufacturer.setText(0,i18n("Manufacturers")) self.manufacturer.setSelectable(False) @@ -291,25 +291,25 @@ class MonitorDialog(KDialogBase): vendors.sort() for vendor in vendors: monitorkeys = self.monitordb.vendordb[vendor].keys() - vendoritem = KListViewItem(self.manufacturer) + vendoritem = TDEListViewItem(self.manufacturer) vendoritem.setText(0,vendor) vendoritem.setSelectable(False) for monitorkey in monitorkeys: - item = KListViewItem(vendoritem) + item = TDEListViewItem(vendoritem) item.setText(0,monitorkey) self.monitor2listitem[self.monitordb.vendordb[vendor][monitorkey]] = item generics = monitordb.genericdb.keys() generics.sort() for generic in generics: - genericitem = KListViewItem(self.generic) + genericitem = TDEListViewItem(self.generic) genericitem.setText(0,generic) self.monitor2listitem[monitordb.genericdb[generic]] = genericitem customs = monitordb.getCustomMonitors().keys() customs.sort() for custom in customs: - customitem = KListViewItem(self.listview) + customitem = TDEListViewItem(self.listview) customitem.setText(0,custom) self.monitor2listitem[monitordb.getCustomMonitors()[custom]] = customitem |