diff options
Diffstat (limited to 'mountconfig')
-rw-r--r-- | mountconfig/SMBShareSelectDialog.py | 8 | ||||
-rwxr-xr-x | mountconfig/mountconfig.py | 16 |
2 files changed, 12 insertions, 12 deletions
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) diff --git a/mountconfig/mountconfig.py b/mountconfig/mountconfig.py index 7e9cca0..5e9692c 100755 --- a/mountconfig/mountconfig.py +++ b/mountconfig/mountconfig.py @@ -2724,7 +2724,7 @@ class MountEntryAdvancedPlainDialog(KDialogBase): return (unicode(self.optionslineedit.text()), self.fsfreqspinbox.value(), self.fspassnospinbox.value()) ############################################################################ -class MountListViewItem(KListViewItem): +class MountListViewItem(TDEListViewItem): ######################################################################## def __init__(self,parentitem,mountentry,haldevice=None): self.haldevice = haldevice @@ -2732,7 +2732,7 @@ class MountListViewItem(KListViewItem): if self.mountentry is None: # There is no mount entry right now. This acts as a place holder # for now. - KListViewItem.__init__(self,parentitem,self.haldevice.getName(),"","",self.haldevice.getDev(),"") + TDEListViewItem.__init__(self,parentitem,self.haldevice.getName(),"","",self.haldevice.getDev(),"") else: if mountentry.isEnabled(): enabled = i18n("Enabled") @@ -2742,7 +2742,7 @@ class MountListViewItem(KListViewItem): name = self.haldevice.getName() else: name = self.mountentry.getName() - KListViewItem.__init__(self, parentitem, \ + TDEListViewItem.__init__(self, parentitem, \ name, self.mountentry.getMountPoint(), \ self.mountentry.mounttype, \ @@ -2823,11 +2823,11 @@ class MountListViewItem(KListViewItem): self.setPixmap(0,UserIcon(self.mountentry.getIconName())) ############################################################################ -class MountGroupListViewItem(KListViewItem): +class MountGroupListViewItem(TDEListViewItem): ######################################################################## def __init__(self,parentitem,haldevice): self.haldevice = haldevice - KListViewItem.__init__(self,parentitem,self.haldevice.getName(),"","","","") + TDEListViewItem.__init__(self,parentitem,self.haldevice.getName(),"","","","") if self.haldevice is not None: iconname = self.haldevice.iconname @@ -2896,7 +2896,7 @@ class MountConfigApp(programbase): label = QLabel(i18n("Available Disks and Filesystems:"),hb) hb.setStretchFactor(label,1) - self.mountlist = KListView(topwidget,"Mount list") + self.mountlist = TDEListView(topwidget,"Mount list") toplayout.addWidget(self.mountlist) self.mountlist.addColumn(i18n("Name")) self.mountlist.addColumn(i18n("Mount Point")) @@ -2911,7 +2911,7 @@ class MountConfigApp(programbase): # Doubleclick in item opens modify dialogue. self.connect(self.mountlist, SIGNAL("doubleClicked(QListViewItem *)"), self.slotModifyClicked) # Rightclick: Open ContextMenu - self.connect(self.mountlist, SIGNAL("contextMenu(KListView*,QListViewItem*,const QPoint&)"), + self.connect(self.mountlist, SIGNAL("contextMenu(TDEListView*,QListViewItem*,const QPoint&)"), self.slotContextMenu) hbox = QHBox(topwidget) @@ -2965,7 +2965,7 @@ class MountConfigApp(programbase): hal_device = lv_item.haldevice if hal_device is not None and not isinstance(hal_device,MicroHAL.FakeSystemDevice): - self.cmenu = KPopupMenu(self,"MyActions") + self.cmenu = TDEPopupMenu(self,"MyActions") if isinstance(hal_device,MicroHAL.RemovableDisk) or isinstance(lv_item,MountListViewItem): self.cmenu.insertItem(i18n("Modify..."), self.slotModifyClicked, 0, 0) self.cmenu.insertItem(i18n("Delete..."), self.slotDeleteClicked, 0, 1) |