mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-10 10:35:17 -04:00
Implement the GUI for editing and creating groups.
This commit is contained in:
parent
bce46c5ece
commit
019bcd380e
13 changed files with 307 additions and 14 deletions
|
@ -25,6 +25,7 @@
|
|||
#include "format/KeePass2XmlReader.h"
|
||||
#include "gui/DatabaseWidget.h"
|
||||
#include "gui/FileDialog.h"
|
||||
#include "gui/GroupView.h"
|
||||
#include "gui/KeyOpenDialog.h"
|
||||
|
||||
DatabaseManagerStruct::DatabaseManagerStruct()
|
||||
|
@ -205,6 +206,20 @@ void DatabaseManager::saveDatabaseAs(int index)
|
|||
saveDatabaseAs(indexDatabase(index));
|
||||
}
|
||||
|
||||
void DatabaseManager::createGroup()
|
||||
{
|
||||
Database* db = indexDatabase(m_tabWidget->currentIndex());
|
||||
DatabaseWidget* dbWidget = m_dbList[db].dbWidget;
|
||||
dbWidget->createGroup();
|
||||
}
|
||||
|
||||
void DatabaseManager::editGroup()
|
||||
{
|
||||
Database* db = indexDatabase(m_tabWidget->currentIndex());
|
||||
DatabaseWidget* dbWidget = m_dbList[db].dbWidget;
|
||||
dbWidget->switchToGroupEdit();
|
||||
}
|
||||
|
||||
void DatabaseManager::updateTabName(Database* db)
|
||||
{
|
||||
int index = databaseIndex(db);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue