aboutsummaryrefslogtreecommitdiff
path: root/src/ui/shortcutitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/shortcutitem.cpp')
-rw-r--r--src/ui/shortcutitem.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/shortcutitem.cpp b/src/ui/shortcutitem.cpp
index 546216fef..eb8baf164 100644
--- a/src/ui/shortcutitem.cpp
+++ b/src/ui/shortcutitem.cpp
@@ -27,8 +27,13 @@ ShortcutItem::ShortcutItem(QTreeWidgetItem *parent, int type) : QTreeWidgetItem(
<< ActionManager::instance()->action(type)->shortcut())
{
m_action = ActionManager::instance()->action(type);
+ setIcon(0, m_action->icon());
}
ShortcutItem::~ShortcutItem()
{}
+QAction *ShortcutItem::action()
+{
+ return m_action;
+}