|
|
@ -57,7 +57,7 @@ else:
|
|
|
|
class UserConfigApp(programbase):
|
|
|
|
class UserConfigApp(programbase):
|
|
|
|
def __init__(self,parent=None,name=None):
|
|
|
|
def __init__(self,parent=None,name=None):
|
|
|
|
global standalone,isroot
|
|
|
|
global standalone,isroot
|
|
|
|
KGlobal.locale().insertCatalogue("guidance")
|
|
|
|
TDEGlobal.locale().insertCatalogue("guidance")
|
|
|
|
|
|
|
|
|
|
|
|
if standalone:
|
|
|
|
if standalone:
|
|
|
|
KDialogBase.__init__(self,KJanusWidget.Tabbed,i18n("User Accounts and Groups"),
|
|
|
|
KDialogBase.__init__(self,KJanusWidget.Tabbed,i18n("User Accounts and Groups"),
|
|
|
@ -76,7 +76,7 @@ class UserConfigApp(programbase):
|
|
|
|
# Create a configuration object.
|
|
|
|
# Create a configuration object.
|
|
|
|
self.config = KConfig("userconfigrc")
|
|
|
|
self.config = KConfig("userconfigrc")
|
|
|
|
|
|
|
|
|
|
|
|
KGlobal.iconLoader().addAppDir("guidance")
|
|
|
|
TDEGlobal.iconLoader().addAppDir("guidance")
|
|
|
|
|
|
|
|
|
|
|
|
self.usersToListItems = None
|
|
|
|
self.usersToListItems = None
|
|
|
|
self.selecteduserid = None
|
|
|
|
self.selecteduserid = None
|
|
|
@ -1093,7 +1093,7 @@ class UserEditDialog(KDialogBase):
|
|
|
|
if self.userobj.getLastPasswordChange() in (None,0):
|
|
|
|
if self.userobj.getLastPasswordChange() in (None,0):
|
|
|
|
self.lastchangelabel.setText('-');
|
|
|
|
self.lastchangelabel.setText('-');
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
self.lastchangelabel.setText(KGlobal.locale().formatDate(SptimeToQDate(int(self.userobj.getLastPasswordChange()))))
|
|
|
|
self.lastchangelabel.setText(TDEGlobal.locale().formatDate(SptimeToQDate(int(self.userobj.getLastPasswordChange()))))
|
|
|
|
|
|
|
|
|
|
|
|
########################################################################
|
|
|
|
########################################################################
|
|
|
|
def __updateObjectFromGUI(self,userobj):
|
|
|
|
def __updateObjectFromGUI(self,userobj):
|
|
|
@ -1371,7 +1371,7 @@ class UserDeleteDialog(KDialog):
|
|
|
|
toplayout.setStretchFactor(contentbox,1)
|
|
|
|
toplayout.setStretchFactor(contentbox,1)
|
|
|
|
|
|
|
|
|
|
|
|
label = QLabel(contentbox)
|
|
|
|
label = QLabel(contentbox)
|
|
|
|
label.setPixmap(KGlobal.iconLoader().loadIcon("messagebox_warning", KIcon.NoGroup, KIcon.SizeMedium,
|
|
|
|
label.setPixmap(TDEGlobal.iconLoader().loadIcon("messagebox_warning", KIcon.NoGroup, KIcon.SizeMedium,
|
|
|
|
KIcon.DefaultState, None, True))
|
|
|
|
KIcon.DefaultState, None, True))
|
|
|
|
contentbox.setStretchFactor(label,0)
|
|
|
|
contentbox.setStretchFactor(label,0)
|
|
|
|
|
|
|
|
|
|
|
@ -1460,7 +1460,7 @@ class OverwriteHomeDirectoryDialog(KDialog):
|
|
|
|
toplayout.setStretchFactor(contentbox,1)
|
|
|
|
toplayout.setStretchFactor(contentbox,1)
|
|
|
|
|
|
|
|
|
|
|
|
label = QLabel(contentbox)
|
|
|
|
label = QLabel(contentbox)
|
|
|
|
label.setPixmap(KGlobal.iconLoader().loadIcon("messagebox_warning", KIcon.NoGroup, KIcon.SizeMedium,
|
|
|
|
label.setPixmap(TDEGlobal.iconLoader().loadIcon("messagebox_warning", KIcon.NoGroup, KIcon.SizeMedium,
|
|
|
|
KIcon.DefaultState, None, True))
|
|
|
|
KIcon.DefaultState, None, True))
|
|
|
|
contentbox.setStretchFactor(label,0)
|
|
|
|
contentbox.setStretchFactor(label,0)
|
|
|
|
|
|
|
|
|
|
|
|