summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/usermanager/userdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/usermanager/userdialog.cpp b/noncore/settings/usermanager/userdialog.cpp
index 892fc8a..f31775d 100644
--- a/noncore/settings/usermanager/userdialog.cpp
+++ b/noncore/settings/usermanager/userdialog.cpp
@@ -36,65 +36,65 @@ UserDialog::UserDialog(QWidget* parent, const char* name, bool modal, WFlags fl)
36 36
37 // And also fill the listview & the combobox with all available groups. 37 // And also fill the listview & the combobox with all available groups.
38 for( QStringList::Iterator it = accounts->groupStringList.begin(); it!=accounts->groupStringList.end(); ++it) { 38 for( QStringList::Iterator it = accounts->groupStringList.begin(); it!=accounts->groupStringList.end(); ++it) {
39 accounts->splitGroupEntry(*it); 39 accounts->splitGroupEntry(*it);
40 new QListViewItem(groupsListView,accounts->gr_name); 40 new QListViewItem(groupsListView,accounts->gr_name);
41 groupComboBox->insertItem(accounts->gr_name); 41 groupComboBox->insertItem(accounts->gr_name);
42 } 42 }
43 43
44 showMaximized(); 44 showMaximized();
45} 45}
46 46
47/** 47/**
48 * Empty destructor. 48 * Empty destructor.
49 * 49 *
50 */ 50 */
51UserDialog::~UserDialog() { 51UserDialog::~UserDialog() {
52} 52}
53 53
54/** 54/**
55 * Creates the first tab, all userinfo is here. 55 * Creates the first tab, all userinfo is here.
56 * 56 *
57 */ 57 */
58void UserDialog::setupTab1() { 58void UserDialog::setupTab1() {
59 QPixmap mypixmap; 59 QPixmap mypixmap;
60 QWidget *tabpage = new QWidget(myTabWidget,"page1"); 60 QWidget *tabpage = new QWidget(myTabWidget,"page1");
61 QVBoxLayout *layout = new QVBoxLayout(tabpage); 61 QVBoxLayout *layout = new QVBoxLayout(tabpage);
62 layout->setMargin(5); 62 layout->setMargin(5);
63 63
64 // Picture 64 // Picture
65 picturePushButton = new QPushButton(tabpage,"Label"); 65 picturePushButton = new QPushButton(tabpage,"Label");
66 picturePushButton->setMinimumSize(48,48); 66 picturePushButton->setMinimumSize(48,48);
67 picturePushButton->setMaximumSize(48,48); 67 picturePushButton->setMaximumSize(48,48);
68 picturePushButton->setPixmap(Resource::loadPixmap("userconfig/usericon"));// Load default usericon. 68 picturePushButton->setPixmap(Resource::loadPixmap("usermanager/usericon"));// Load default usericon.
69 connect(picturePushButton,SIGNAL(clicked()),this,SLOT(clickedPicture()));// Clicking the picture should invoke pictureselector. 69 connect(picturePushButton,SIGNAL(clicked()),this,SLOT(clickedPicture()));// Clicking the picture should invoke pictureselector.
70 70
71 // Login 71 // Login
72 QLabel *loginLabel=new QLabel(tabpage,"Login: "); 72 QLabel *loginLabel=new QLabel(tabpage,"Login: ");
73 loginLabel->setText("Login: "); 73 loginLabel->setText("Login: ");
74 loginLineEdit=new QLineEdit(tabpage,"Login: "); 74 loginLineEdit=new QLineEdit(tabpage,"Login: ");
75 75
76 // UID 76 // UID
77 QLabel *uidLabel=new QLabel(tabpage,"uid: "); 77 QLabel *uidLabel=new QLabel(tabpage,"uid: ");
78 uidLabel->setText("UserID: "); 78 uidLabel->setText("UserID: ");
79 uidLineEdit=new QLineEdit(tabpage,"uid: "); 79 uidLineEdit=new QLineEdit(tabpage,"uid: ");
80 uidLineEdit->setEnabled(false); 80 uidLineEdit->setEnabled(false);
81 81
82 // Username (gecos) 82 // Username (gecos)
83 QLabel *gecosLabel=new QLabel(tabpage,"gecos"); 83 QLabel *gecosLabel=new QLabel(tabpage,"gecos");
84 gecosLabel->setText("Username: "); 84 gecosLabel->setText("Username: ");
85 gecosLineEdit=new QLineEdit(tabpage,"gecos"); 85 gecosLineEdit=new QLineEdit(tabpage,"gecos");
86 86
87 // Password 87 // Password
88 QLabel *passwordLabel=new QLabel(tabpage,"password"); 88 QLabel *passwordLabel=new QLabel(tabpage,"password");
89 passwordLabel->setText("Password: "); 89 passwordLabel->setText("Password: ");
90 passwordLineEdit=new QLineEdit(tabpage,"password"); 90 passwordLineEdit=new QLineEdit(tabpage,"password");
91 passwordLineEdit->setEchoMode(QLineEdit::Password); 91 passwordLineEdit->setEchoMode(QLineEdit::Password);
92 92
93 // Shell 93 // Shell
94 QLabel *shellLabel=new QLabel(tabpage,"shell"); 94 QLabel *shellLabel=new QLabel(tabpage,"shell");
95 shellLabel->setText("Shell: "); 95 shellLabel->setText("Shell: ");
96 shellComboBox=new QComboBox(tabpage,"shell"); 96 shellComboBox=new QComboBox(tabpage,"shell");
97 shellComboBox->setEditable(true); 97 shellComboBox->setEditable(true);
98 shellComboBox->insertItem("/bin/sh"); 98 shellComboBox->insertItem("/bin/sh");
99 shellComboBox->insertItem("/bin/ash"); 99 shellComboBox->insertItem("/bin/ash");
100 shellComboBox->insertItem("/bin/false"); 100 shellComboBox->insertItem("/bin/false");