mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-09 06:52:50 -04:00
Add ability to delete entries via gui.
This commit is contained in:
parent
37291d278e
commit
5661f29f7d
6 changed files with 15 additions and 1 deletions
|
@ -268,6 +268,11 @@ void DatabaseTabWidget::editEntry()
|
||||||
currentDatabaseWidget()->switchToEntryEdit();
|
currentDatabaseWidget()->switchToEntryEdit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DatabaseTabWidget::deleteEntry()
|
||||||
|
{
|
||||||
|
currentDatabaseWidget()->deleteEntry();
|
||||||
|
}
|
||||||
|
|
||||||
void DatabaseTabWidget::createGroup()
|
void DatabaseTabWidget::createGroup()
|
||||||
{
|
{
|
||||||
currentDatabaseWidget()->createGroup();
|
currentDatabaseWidget()->createGroup();
|
||||||
|
|
|
@ -60,6 +60,7 @@ public Q_SLOTS:
|
||||||
void changeMasterKey();
|
void changeMasterKey();
|
||||||
void createEntry();
|
void createEntry();
|
||||||
void editEntry();
|
void editEntry();
|
||||||
|
void deleteEntry();
|
||||||
void createGroup();
|
void createGroup();
|
||||||
void editGroup();
|
void editGroup();
|
||||||
|
|
||||||
|
|
|
@ -102,6 +102,11 @@ void DatabaseWidget::createEntry()
|
||||||
switchToEntryEdit(m_newEntry, true);
|
switchToEntryEdit(m_newEntry, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DatabaseWidget::deleteEntry()
|
||||||
|
{
|
||||||
|
delete m_entryView->currentEntry();
|
||||||
|
}
|
||||||
|
|
||||||
void DatabaseWidget::createGroup()
|
void DatabaseWidget::createGroup()
|
||||||
{
|
{
|
||||||
m_newGroup = new Group();
|
m_newGroup = new Group();
|
||||||
|
|
|
@ -38,6 +38,7 @@ public:
|
||||||
GroupView* groupView();
|
GroupView* groupView();
|
||||||
EntryView* entryView();
|
EntryView* entryView();
|
||||||
bool dbHasKey();
|
bool dbHasKey();
|
||||||
|
void deleteEntry();
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void closeRequest();
|
void closeRequest();
|
||||||
|
|
|
@ -44,6 +44,7 @@ MainWindow::MainWindow()
|
||||||
connect(m_ui->actionChangeMasterKey, SIGNAL(triggered()), m_ui->tabWidget, SLOT(changeMasterKey()));
|
connect(m_ui->actionChangeMasterKey, SIGNAL(triggered()), m_ui->tabWidget, SLOT(changeMasterKey()));
|
||||||
connect(m_ui->actionEntryNew, SIGNAL(triggered()), m_ui->tabWidget, SLOT(createEntry()));
|
connect(m_ui->actionEntryNew, SIGNAL(triggered()), m_ui->tabWidget, SLOT(createEntry()));
|
||||||
connect(m_ui->actionEntryEdit, SIGNAL(triggered()), m_ui->tabWidget, SLOT(editEntry()));
|
connect(m_ui->actionEntryEdit, SIGNAL(triggered()), m_ui->tabWidget, SLOT(editEntry()));
|
||||||
|
connect(m_ui->actionEntryDelete, SIGNAL(triggered()), m_ui->tabWidget, SLOT(deleteEntry()));
|
||||||
connect(m_ui->actionGroupNew, SIGNAL(triggered()), m_ui->tabWidget, SLOT(createGroup()));
|
connect(m_ui->actionGroupNew, SIGNAL(triggered()), m_ui->tabWidget, SLOT(createGroup()));
|
||||||
connect(m_ui->actionGroupEdit, SIGNAL(triggered()), m_ui->tabWidget, SLOT(editGroup()));
|
connect(m_ui->actionGroupEdit, SIGNAL(triggered()), m_ui->tabWidget, SLOT(editGroup()));
|
||||||
connect(m_ui->actionQuit, SIGNAL(triggered()), SLOT(close()));
|
connect(m_ui->actionQuit, SIGNAL(triggered()), SLOT(close()));
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>800</width>
|
<width>800</width>
|
||||||
<height>19</height>
|
<height>20</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menuFile">
|
<widget class="QMenu" name="menuFile">
|
||||||
|
@ -96,6 +96,7 @@
|
||||||
</attribute>
|
</attribute>
|
||||||
<addaction name="actionEntryNew"/>
|
<addaction name="actionEntryNew"/>
|
||||||
<addaction name="actionEntryEdit"/>
|
<addaction name="actionEntryEdit"/>
|
||||||
|
<addaction name="actionEntryDelete"/>
|
||||||
</widget>
|
</widget>
|
||||||
<action name="actionQuit">
|
<action name="actionQuit">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue