add/edit/delete group (qt4-reimplementation)
git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@11 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
@@ -32,6 +32,8 @@ CEditGroupDialog::CEditGroupDialog(QWidget* parent, const char* name, bool modal
|
||||
{
|
||||
setupUi(this);
|
||||
IconID=0;
|
||||
connect( ButtonOK, SIGNAL( clicked() ), this, SLOT( OnOK() ) );
|
||||
connect( ButtonCancel, SIGNAL( clicked() ), this, SLOT( OnCancel() ) );
|
||||
}
|
||||
|
||||
CEditGroupDialog::~CEditGroupDialog()
|
||||
@@ -51,14 +53,12 @@ void CEditGroupDialog::OnOK()
|
||||
{
|
||||
GroupName=EditTitle->text();
|
||||
IconID=ComboIconPicker->currentItem();
|
||||
OK=true;
|
||||
close();
|
||||
done(1);
|
||||
}
|
||||
|
||||
void CEditGroupDialog::OnCancel()
|
||||
{
|
||||
OK=false;
|
||||
close();
|
||||
done(0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -45,7 +45,6 @@ protected slots:
|
||||
public:
|
||||
int IconID;
|
||||
QString GroupName;
|
||||
bool OK;
|
||||
|
||||
|
||||
public slots:
|
||||
|
||||
Reference in New Issue
Block a user