diff options
author | James Turner <james.turner@kdab.com> | 2015-06-24 10:17:04 +0100 |
---|---|---|
committer | James Turner <james.turner@kdab.com> | 2015-07-09 10:53:17 +0000 |
commit | 130c2baa9376dcf525916620294bd9996bdf41f3 (patch) | |
tree | 8933d343ad45d17400aafd1d6533a94a6594e1d0 /src/gui/image/qicon.h | |
parent | bd4ff0b552d5c31eaf35d67208d003b132a4ffba (diff) |
Add ability for QIcons to be marked as template images.
This allows end users to create QSystemTrayIcons that are properly
displayed as monochrome images on OS X, which is especially important
on Yosemite and above when Dark Mode is turned on.
[ChangeLog][QtGui][QIcon] Add ability for QIcons to be marked
as template images. This allows end users to create QSystemTrayIcons
that are properly displayed as monochrome images on OS X, which is
especially important on Yosemite and above when Dark Mode is turned on.
Task-number: QTBUG-42109
Change-Id: I095fb71355ffa572d0abb4769341f68b89b877c4
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Diffstat (limited to 'src/gui/image/qicon.h')
-rw-r--r-- | src/gui/image/qicon.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/image/qicon.h b/src/gui/image/qicon.h index c33a1f2698..ccddf69101 100644 --- a/src/gui/image/qicon.h +++ b/src/gui/image/qicon.h @@ -102,6 +102,9 @@ public: QList<QSize> availableSizes(Mode mode = Normal, State state = Off) const; + void setIsMask(bool isMask); + bool isMask() const; + static QIcon fromTheme(const QString &name, const QIcon &fallback = QIcon()); static bool hasThemeIcon(const QString &name); |