diff options
author | Alessandro Portale <alessandro.portale@theqtcompany.com> | 2016-04-25 12:25:10 +0200 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@theqtcompany.com> | 2016-04-25 12:02:09 +0000 |
commit | eea27bc82d38d1266e70cd58687adebbcdff255b (patch) | |
tree | b66c72c6001a397f68be5fff0098e1982ce11674 /src/libs/utils/proxyaction.h | |
parent | a3880c4916cce1fac2c033ef291a83a887accdc6 (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.h | 1 |
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(); |