mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-08 22:42:34 -04:00
Add a function to database widget to access enabled state of actions.
This commit is contained in:
parent
267e88001b
commit
4751f40c2b
3 changed files with 51 additions and 13 deletions
|
@ -47,6 +47,18 @@ public:
|
|||
ViewMode,
|
||||
EditMode
|
||||
};
|
||||
enum Action
|
||||
{
|
||||
GroupNew,
|
||||
GroupEdit,
|
||||
GroupDelete,
|
||||
EntryNew,
|
||||
EntryClone,
|
||||
EntryEditView,
|
||||
EntryDelete,
|
||||
EntryCopyUsername,
|
||||
EntryCopyPassword
|
||||
};
|
||||
|
||||
explicit DatabaseWidget(Database* db, QWidget* parent = 0);
|
||||
~DatabaseWidget();
|
||||
|
@ -57,6 +69,7 @@ public:
|
|||
int addWidget(QWidget* w);
|
||||
void setCurrentIndex(int index);
|
||||
DatabaseWidget::Mode currentMode();
|
||||
bool actionEnabled(Action action);
|
||||
|
||||
Q_SIGNALS:
|
||||
void closeRequest();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue