aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/proxyaction.h
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@theqtcompany.com>2016-04-25 12:25:10 +0200
committerAlessandro Portale <alessandro.portale@theqtcompany.com>2016-04-25 12:02:09 +0000
commiteea27bc82d38d1266e70cd58687adebbcdff255b (patch)
treeb66c72c6001a397f68be5fff0098e1982ce11674 /src/libs/utils/proxyaction.h
parenta3880c4916cce1fac2c033ef291a83a887accdc6 (diff)
Utils: Add a ProxyAction factory which overrides an action icon
There are several places where we want to override an icon when adding an action to a toolbar and to a menu, because we need to different icon variations. Change-Id: I0bed4d002b8f83c9ce3278137aa463c20d1dc7be Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/libs/utils/proxyaction.h')
-rw-r--r--src/libs/utils/proxyaction.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/utils/proxyaction.h b/src/libs/utils/proxyaction.h
index d6187d047e..3307a0c0ae 100644
--- a/src/libs/utils/proxyaction.h
+++ b/src/libs/utils/proxyaction.h
@@ -58,6 +58,7 @@ public:
bool hasAttribute(Attribute attribute);
static QString stringWithAppendedShortcut(const QString &str, const QKeySequence &shortcut);
+ static ProxyAction *proxyActionWithIcon(QAction *original, const QIcon &newIcon);
private slots:
void actionChanged();