From 40c82a8a1d3e65788451022249d984d3166c3aca Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 4 Nov 2010 20:17:13 +0000 Subject: completed shortcut editor git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1980 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/shortcutitem.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ui/shortcutitem.cpp') 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; +} -- cgit v1.2.3-13-gbd6f