Distinguish between adding groups and subgroups

Fixed visual distortion in PasswordGenDlg
Updated Spanish translation

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@240 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
sniperbeamer
2008-12-21 23:37:15 +00:00
parent 888d0982d4
commit 06a938ce4a
8 changed files with 454 additions and 644 deletions

View File

@@ -103,6 +103,13 @@ void KeepassGroupView::OnHideSearchResults(){
}
void KeepassGroupView::OnNewGroup(){
CGroup NewGroup;
CEditGroupDialog dlg(db,&NewGroup,parentWidget(),true);
if(dlg.exec())
createGroup(NewGroup.Title, NewGroup.Image, NULL);
}
void KeepassGroupView::OnNewSubgroup(){
GroupViewItem* parent=(GroupViewItem*)currentItem();
CGroup NewGroup;
CEditGroupDialog dlg(db,&NewGroup,parentWidget(),true);

View File

@@ -65,6 +65,7 @@ class KeepassGroupView:public QTreeWidget{
void OnCurrentGroupChanged(QTreeWidgetItem*);
void OnDeleteGroup();
void OnNewGroup();
void OnNewSubgroup();
void OnEditGroup();
void updateIcons();
void OnHideSearchResults();