mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 08:19:47 -05:00
Add icons to actions in context menu.
This commit is contained in:
parent
b5797503a8
commit
92e4055f85
@ -119,11 +119,15 @@ DatabaseWidget::DatabaseWidget(Database* db, QWidget* parent)
|
||||
addWidget(m_historyEditEntryWidget);
|
||||
|
||||
m_actionEntryNew = m_menuEntry->addAction(tr("Add new entry"), this, SLOT(createEntry()));
|
||||
m_actionEntryNew->setIcon(dataPath()->icon("actions", "entry-new", false));
|
||||
m_actionEntryClone = m_menuEntry->addAction(tr("Clone entry"), this, SLOT(cloneEntry()));
|
||||
m_actionEntryClone->setIcon(dataPath()->icon("actions", "entry-clone", false));
|
||||
m_actionEntryClone->setEnabled(false);
|
||||
m_actionEntryEditView = m_menuEntry->addAction(tr("View/Edit entry"), this, SLOT(switchToEntryEdit()));
|
||||
m_actionEntryEditView->setIcon(dataPath()->icon("actions", "entry-edit", false));
|
||||
m_actionEntryEditView->setEnabled(false);
|
||||
m_actionEntryDelete = m_menuEntry->addAction(tr("Delete entry"), this, SLOT(deleteEntry()));
|
||||
m_actionEntryDelete->setIcon(dataPath()->icon("actions", "entry-delete", false));
|
||||
m_actionEntryDelete->setEnabled(false);
|
||||
m_actionEntryCopyUsername = m_menuEntry->addAction(tr("Copy username to clipboard"), this,
|
||||
SLOT(copyUsername()), Qt::CTRL + Qt::Key_B);
|
||||
|
Loading…
Reference in New Issue
Block a user