From 2a081fc8bfcf498b558c5c5434069572f6245b8e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:05:56 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- mountconfig/SMBShareSelectDialog.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mountconfig/SMBShareSelectDialog.py') diff --git a/mountconfig/SMBShareSelectDialog.py b/mountconfig/SMBShareSelectDialog.py index f76e561..d3fb794 100644 --- a/mountconfig/SMBShareSelectDialog.py +++ b/mountconfig/SMBShareSelectDialog.py @@ -50,7 +50,7 @@ class SMBShareSelectDialog(KDialogBase): hbox2 = QHBox(vbox) # The main treeview where the action happens. - self.treeview = KListView(hbox2) + self.treeview = TDEListView(hbox2) self.treeview.addColumn("(hidden)") self.treeview.header().hide() self.treeview.setRootIsDecorated(True) @@ -168,7 +168,7 @@ class SMBShareSelectDialog(KDialogBase): ######################################################################## def setOpen(self,item,open): if item.isResolved(): - KListView.setOpen(self.treeview,item,open) + TDEListView.setOpen(self.treeview,item,open) else: item.startResolve(True) @@ -379,7 +379,7 @@ class SMBShareSelectDialog(KDialogBase): self.reconnectbutton.setEnabled(False) ############################################################################ -class SMBShareListViewItem(KListViewItem): +class SMBShareListViewItem(TDEListViewItem): # Return codes for selectURL() OPEN_SUCCESS = 1 OPEN_SUCCESS_INVALID = 2 @@ -394,7 +394,7 @@ class SMBShareListViewItem(KListViewItem): ######################################################################## def __init__(self,parentitem,name,url,smbdialog): - KListViewItem.__init__(self,parentitem,name) + TDEListViewItem.__init__(self,parentitem,name) if not isinstance(parentitem,SMBShareListViewItem): self._setIcon(0) self.setSelectable(False) -- cgit v1.2.1