summaryrefslogtreecommitdiffstats
path: root/userconfig
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:05:56 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:05:56 -0600
commit2a081fc8bfcf498b558c5c5434069572f6245b8e (patch)
treeafad48e0a2769d1079cbc6af0d890bd2e0e1dbbf /userconfig
parent671df160874c6e4ff50b230a5e5f1eb35f1c6464 (diff)
downloadtde-guidance-2a081fc8bfcf498b558c5c5434069572f6245b8e.tar.gz
tde-guidance-2a081fc8bfcf498b558c5c5434069572f6245b8e.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'userconfig')
-rwxr-xr-xuserconfig/userconfig.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/userconfig/userconfig.py b/userconfig/userconfig.py
index 3cfd450..b32e367 100755
--- a/userconfig/userconfig.py
+++ b/userconfig/userconfig.py
@@ -110,7 +110,7 @@ class UserConfigApp(programbase):
label = QLabel(i18n("User Accounts:"),hb)
hb.setStretchFactor(label,1)
- self.userlist = KListView(vbox)
+ self.userlist = TDEListView(vbox)
self.userlist.addColumn(i18n("Login Name"))
self.userlist.addColumn(i18n("Real Name"))
self.userlist.addColumn(i18n("UID"))
@@ -120,7 +120,7 @@ class UserConfigApp(programbase):
self.connect(self.userlist, SIGNAL("selectionChanged(QListViewItem *)"), self.slotListClicked)
if isroot:
self.connect(self.userlist, SIGNAL("doubleClicked(QListViewItem *)"), self.slotModifyClicked)
- self.connect(self.userlist, SIGNAL("contextMenu(KListView*,QListViewItem*,const QPoint&)"), self.slotUserContext)
+ self.connect(self.userlist, SIGNAL("contextMenu(TDEListView*,QListViewItem*,const QPoint&)"), self.slotUserContext)
self.showspecialcheckbox = QCheckBox(i18n("Show system accounts"),vbox)
vbox.setStretchFactor(self.showspecialcheckbox,0)
@@ -211,7 +211,7 @@ class UserConfigApp(programbase):
groupsplitter = QSplitter(Qt.Vertical,groupsvbox)
- self.grouplist = KListView(groupsplitter)
+ self.grouplist = TDEListView(groupsplitter)
self.grouplist.addColumn(i18n("Group Name"))
self.grouplist.addColumn(i18n("GID"))
self.grouplist.setAllColumnsShowFocus(True)
@@ -219,7 +219,7 @@ class UserConfigApp(programbase):
if isroot:
self.connect(self.grouplist, SIGNAL("doubleClicked(QListViewItem *)"), self.slotModifyGroupClicked)
- self.connect(self.grouplist, SIGNAL("contextMenu(KListView*,QListViewItem*,const QPoint&)"),
+ self.connect(self.grouplist, SIGNAL("contextMenu(TDEListView*,QListViewItem*,const QPoint&)"),
self.slotGroupContext)
groupbottomvbox = QVBox(groupsplitter)
@@ -255,7 +255,7 @@ class UserConfigApp(programbase):
label = QLabel(i18n("Group Members:"),groupbottomvbox)
groupsvbox.setStretchFactor(label,0)
- self.groupmemberlist = KListView(groupbottomvbox)
+ self.groupmemberlist = TDEListView(groupbottomvbox)
self.groupmemberlist.addColumn(i18n("Login Name"))
self.groupmemberlist.addColumn(i18n("Real Name"))
self.groupmemberlist.addColumn(i18n("UID"))
@@ -296,7 +296,7 @@ class UserConfigApp(programbase):
#######################################################################
def slotUserContext(self,l,v,p):
- cmenu = KPopupMenu(self,"MyActions")
+ cmenu = TDEPopupMenu(self,"MyActions")
cmenu.insertItem(i18n("Modify..."), self.slotModifyClicked, 0, 0)
cmenu.insertItem(i18n("Delete..."), self.slotDeleteClicked, 0, 1)
if not isroot:
@@ -307,7 +307,7 @@ class UserConfigApp(programbase):
#######################################################################
def slotGroupContext(self,l,v,p):
- cmenu = KPopupMenu(self,"MyActions")
+ cmenu = TDEPopupMenu(self,"MyActions")
cmenu.insertItem(i18n("Modify..."), self.slotModifyGroupClicked, 0, 0)
cmenu.insertItem(i18n("Delete..."), self.slotDeleteGroupClicked, 0, 1)
if not isroot:
@@ -439,7 +439,7 @@ class UserConfigApp(programbase):
for userobj in users:
uid = userobj.getUID()
if self.showsystemaccounts or not userobj.isSystemUser():
- lvi = KListViewItem(self.userlist,userobj.getUsername(),userobj.getRealName(),unicode(uid))
+ lvi = TDEListViewItem(self.userlist,userobj.getUsername(),userobj.getRealName(),unicode(uid))
if userobj.isLocked():
lvi.setPixmap(0,UserIcon("hi16-encrypted"))
self.useridsToListItems[uid] = lvi
@@ -1267,7 +1267,7 @@ class ListPickerDialog(KDialogBase):
self.tophbox.setStretchFactor(vbox,1)
label = QLabel(leftlabel,vbox)
vbox.setStretchFactor(label,0)
- self.availablelist = KListBox(vbox)
+ self.availablelist = TDEListBox(vbox)
vbox.setStretchFactor(self.availablelist,1)
# ->, <- Buttons
@@ -1289,7 +1289,7 @@ class ListPickerDialog(KDialogBase):
self.tophbox.setStretchFactor(vbox,1)
label = QLabel(rightlabel,vbox)
vbox.setStretchFactor(label,0)
- self.selectedlist = KListBox(vbox)
+ self.selectedlist = TDEListBox(vbox)
vbox.setStretchFactor(self.selectedlist,1)
#######################################################################
@@ -1567,7 +1567,7 @@ class GroupEditDialog(KDialogBase):
hbox.setStretchFactor(vbox,1)
label = QLabel(i18n("Available Accounts"),vbox)
vbox.setStretchFactor(label,0)
- self.availablelist = KListBox(vbox)
+ self.availablelist = TDEListBox(vbox)
vbox.setStretchFactor(self.availablelist,1)
# ->, <- Buttons
@@ -1591,7 +1591,7 @@ class GroupEditDialog(KDialogBase):
hbox.setStretchFactor(vbox,1)
label = QLabel(i18n("Selected Accounts"),vbox)
vbox.setStretchFactor(label,0)
- self.selectedlist = KListBox(vbox)
+ self.selectedlist = TDEListBox(vbox)
vbox.setStretchFactor(self.selectedlist,1)
#######################################################################