Changeset 6262
- Timestamp:
- 06/11/08 09:17:19 (6 months ago)
- Location:
- branches/qt4-gui_group/src/dialogs
- Files:
-
- 2 modified
-
adduserdlg.cpp (modified) (3 diffs)
-
adduserdlg.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/qt4-gui_group/src/dialogs/adduserdlg.cpp
r6261 r6262 64 64 layDialog->addWidget(myGroup, line++, 1); 65 65 66 QLabel* lbl Uin= new QLabel(tr("New &User ID:"));67 my Uin= new QLineEdit();66 QLabel* lblId = new QLabel(tr("New &User ID:")); 67 myId = new QLineEdit(); 68 68 if (!id.isEmpty()) 69 my Uin->setText(id);70 connect(my Uin, SIGNAL(returnPressed()), SLOT(ok()));71 lbl Uin->setBuddy(myUin);69 myId->setText(id); 70 connect(myId, SIGNAL(returnPressed()), SLOT(ok())); 71 lblId->setBuddy(myId); 72 72 73 layDialog->addWidget(lbl Uin, line, 0);74 layDialog->addWidget(my Uin, line++, 1);73 layDialog->addWidget(lblId, line, 0); 74 layDialog->addWidget(myId, line++, 1); 75 75 76 76 myNotify = new QCheckBox(tr("&Notify User")); … … 86 86 layDialog->addWidget(buttons, line++, 0, 1, 2); 87 87 88 my Uin->setFocus();88 myId->setFocus(); 89 89 show(); 90 90 } … … 92 92 void AddUserDlg::ok() 93 93 { 94 QString uin = myUin->text().trimmed();94 QString id = myId->text().trimmed(); 95 95 96 if (! uin.isEmpty())96 if (!id.isEmpty()) 97 97 { 98 98 unsigned short currentNewGroup = gUserManager.NewUserGroup(); 99 99 gUserManager.SetNewUserGroup(myGroup->currentGroupId()); 100 gLicqDaemon->AddUserToList( uin.toLatin1(), myProtocol->currentPpid(),100 gLicqDaemon->AddUserToList(id.toLatin1(), myProtocol->currentPpid(), 101 101 myNotify->isChecked()); 102 102 gUserManager.SetNewUserGroup(currentNewGroup); -
branches/qt4-gui_group/src/dialogs/adduserdlg.h
r6261 r6262 41 41 private: 42 42 QCheckBox* myNotify; 43 QLineEdit* my Uin;43 QLineEdit* myId; 44 44 GroupComboBox* myGroup; 45 45 ProtoComboBox* myProtocol;
