void GxsGroupDialog::submitGroup() { std::cerr << "GxsGroupDialog::submitGroup()"; std::cerr << std::endl; /* switch depending on mode */ switch (mode()) { case MODE_CREATE: { /* just close if down */ createGroup(); } break; case MODE_SHOW: { /* just close if down */ cancelDialog(); } break; case MODE_EDIT: { editGroup(); } break; } }
void RegisteredUsersDialog::itemDoubleClicked(QTreeWidgetItem *it, int) { if(!it)return; RegisteredUsersDialogItemBase* b=(RegisteredUsersDialogItemBase*)it; if(b->type()==RegisteredUsersDialogItemBase::User) { editItem((RegisteredUsersDialogItem *)it); } else { RegisteredUsersGroupItem *i = (RegisteredUsersGroupItem *)b; editGroup(i->group()); } }