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 /grubconfig | |
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 'grubconfig')
-rw-r--r-- | grubconfig/grubconfig.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/grubconfig/grubconfig.py b/grubconfig/grubconfig.py index e95213c..5b26ab3 100644 --- a/grubconfig/grubconfig.py +++ b/grubconfig/grubconfig.py @@ -45,20 +45,20 @@ cat2 = ["savedefault","makeactive","chainloader"] cat3 = ["kernel"] -class GreyListViewItem(KListViewItem): +class GreyListViewItem(TDEListViewItem): def paintCell(self, p, cg, column, width, align ): cgGrey = cg cgGrey.setColor(QColorGroup.Text,QColor("grey")) - KListViewItem.paintCell(self, p, cgGrey, column, width, align) + TDEListViewItem.paintCell(self, p, cgGrey, column, width, align) cg.restore() -class BoldListViewItem(KListViewItem): +class BoldListViewItem(TDEListViewItem): def paintCell(self, p, cg, column, width, align ): p.save() f = p.font() f.setBold(True) - KListViewItem.paintCell(self, p, cg, column, width, align) + TDEListViewItem.paintCell(self, p, cg, column, width, align) p.restore() @@ -88,7 +88,7 @@ class GrubConfigAppClass(programbase): # -- Operating Systems List & MakeDefault Button -- horizontalbox = QHBox(vbox) - self.itemslistview = KListView(horizontalbox) + self.itemslistview = TDEListView(horizontalbox) self.itemslistview.addColumn("") self.itemslistview.setSorting(-1) self.itemslistview.header().hide() @@ -187,7 +187,7 @@ class GrubConfigAppClass(programbase): # -- Operating Systems List -- horizontalbox = QHBox(vb) - self.oslistview = KListView(horizontalbox) + self.oslistview = TDEListView(horizontalbox) self.oslistview.addColumn("") self.oslistview.addColumn("") self.oslistview.setSorting(-1) @@ -288,9 +288,9 @@ class GrubConfigAppClass(programbase): if self.itemslist.index(item) == int(self.globalvars['default'][0]): self.oslistviewitems.append(BoldListViewItem(self.oslistview,self.oslistview.lastItem(),item['title'][0])) else: - self.oslistviewitems.append(KListViewItem(self.oslistview,self.oslistview.lastItem(),item['title'][0])) + self.oslistviewitems.append(TDEListViewItem(self.oslistview,self.oslistview.lastItem(),item['title'][0])) except ValueError: - self.oslistviewitems.append(KListViewItem(self.oslistview,self.oslistview.lastItem(),item['title'][0])) + self.oslistviewitems.append(TDEListViewItem(self.oslistview,self.oslistview.lastItem(),item['title'][0])) # if it has a root option (other than 1 which means only root by itself), it is an OS else: self.itemslistview.clear() @@ -301,9 +301,9 @@ class GrubConfigAppClass(programbase): print "bam!" self.itemslistviewitems.append(BoldListViewItem(self.itemslistview,self.itemslistview.lastItem(),item['title'][0])) else: - self.itemslistviewitems.append(KListViewItem(self.itemslistview,self.itemslistview.lastItem(),item['title'][0])) + self.itemslistviewitems.append(TDEListViewItem(self.itemslistview,self.itemslistview.lastItem(),item['title'][0])) except ValueError: - self.itemslistviewitems.append(KListViewItem(self.itemslistview,self.itemslistview.lastItem(),item['title'][0])) + self.itemslistviewitems.append(TDEListViewItem(self.itemslistview,self.itemslistview.lastItem(),item['title'][0])) ####################################################################### def slotUser1(self): @@ -394,7 +394,7 @@ class GrubConfigAppClass(programbase): pass else: container = self.itemslistviewitems[defaultn] - self.itemslistviewitems[defaultn] = KListViewItem(self.itemslistview,container,self.itemslist[defaultn]['title'][0]) + self.itemslistviewitems[defaultn] = TDEListViewItem(self.itemslistview,container,self.itemslist[defaultn]['title'][0]) self.itemslistview.takeItem(container) |