Changeset 6261
- Timestamp:
- 06/11/08 08:33:16 (4 months ago)
- Location:
- branches/qt4-gui_group/src/dialogs
- Files:
-
- 2 modified
-
adduserdlg.cpp (modified) (3 diffs)
-
adduserdlg.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/qt4-gui_group/src/dialogs/adduserdlg.cpp
r6252 r6261 31 31 #include "helpers/support.h" 32 32 33 #include "widgets/groupcombobox.h" 33 34 #include "widgets/protocombobox.h" 34 35 … … 54 55 layDialog->addWidget(lblProtocol, line, 0); 55 56 layDialog->addWidget(myProtocol, line++, 1); 57 58 QLabel* lblGroup = new QLabel(tr("&Group:")); 59 myGroup = new GroupComboBox(); 60 myGroup->setCurrentGroupId(gUserManager.NewUserGroup()); 61 lblGroup->setBuddy(myGroup); 62 63 layDialog->addWidget(lblGroup, line, 0); 64 layDialog->addWidget(myGroup, line++, 1); 56 65 57 66 QLabel* lblUin = new QLabel(tr("New &User ID:")); … … 83 92 void AddUserDlg::ok() 84 93 { 85 QString uin = myUin->text() ;94 QString uin = myUin->text().trimmed(); 86 95 87 96 if (!uin.isEmpty()) 97 { 98 unsigned short currentNewGroup = gUserManager.NewUserGroup(); 99 gUserManager.SetNewUserGroup(myGroup->currentGroupId()); 88 100 gLicqDaemon->AddUserToList(uin.toLatin1(), myProtocol->currentPpid(), 89 101 myNotify->isChecked()); 102 gUserManager.SetNewUserGroup(currentNewGroup); 103 } 90 104 91 105 close(); -
branches/qt4-gui_group/src/dialogs/adduserdlg.h
r6221 r6261 29 29 namespace LicqQtGui 30 30 { 31 class GroupComboBox; 31 32 class ProtoComboBox; 32 33 … … 41 42 QCheckBox* myNotify; 42 43 QLineEdit* myUin; 44 GroupComboBox* myGroup; 43 45 ProtoComboBox* myProtocol; 44 46
