From 130c2baa9376dcf525916620294bd9996bdf41f3 Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 24 Jun 2015 10:17:04 +0100 Subject: 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 --- src/gui/image/qicon.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/image/qicon.h') 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 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); -- cgit v1.2.3