Add more icons to actions in context menu.

This commit is contained in:
Florian Geyer 2012-05-27 16:58:11 +02:00
parent 56509eab5f
commit 6fb6e1dc82

View File

@ -137,8 +137,11 @@ DatabaseWidget::DatabaseWidget(Database* db, QWidget* parent)
m_actionEntryCopyPassword->setEnabled(false); m_actionEntryCopyPassword->setEnabled(false);
m_actionGroupNew = m_menuGroup->addAction(tr("Add new group"), this, SLOT(createGroup())); m_actionGroupNew = m_menuGroup->addAction(tr("Add new group"), this, SLOT(createGroup()));
m_actionGroupNew->setIcon(dataPath()->icon("actions", "group-new", false));
m_actionGroupEdit = m_menuGroup->addAction(tr("Edit group"), this, SLOT(switchToGroupEdit())); m_actionGroupEdit = m_menuGroup->addAction(tr("Edit group"), this, SLOT(switchToGroupEdit()));
m_actionGroupEdit->setIcon(dataPath()->icon("actions", "group-edit", false));
m_actionGroupDelete = m_menuGroup->addAction(tr("Delete group"), this, SLOT(deleteGroup())); m_actionGroupDelete = m_menuGroup->addAction(tr("Delete group"), this, SLOT(deleteGroup()));
m_actionGroupDelete->setIcon(dataPath()->icon("actions", "group-delete", false));
m_actionGroupDelete->setEnabled(false); m_actionGroupDelete->setEnabled(false);
connect(m_groupView, SIGNAL(groupChanged(Group*)), this, SLOT(clearLastGroup(Group*))); connect(m_groupView, SIGNAL(groupChanged(Group*)), this, SLOT(clearLastGroup(Group*)));