summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpaintengine_mac_p.h
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-06-05 08:13:16 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-06-05 12:27:14 (GMT)
commita468e2f12536600abff582e8770ec42e1782bdab (patch)
tree6dc0582b8f673da65f190836538e3ebc62bfc905 /src/gui/painting/qpaintengine_mac_p.h
parent4acabb3abd0ff109b9abeedb6832f5b1c3e0cc4e (diff)
downloadQt-a468e2f12536600abff582e8770ec42e1782bdab.zip
Qt-a468e2f12536600abff582e8770ec42e1782bdab.tar.gz
Qt-a468e2f12536600abff582e8770ec42e1782bdab.tar.bz2
Add a callback so Qt updates its color stuff when the profile changes.
We've had a problem with a stale cache for color profiles this should make things work well. We get the callback for each display whether it needs it or not, but honesly I would rather that we update this a few times too many when people change their display profile than not at all. FWIW, this code is inspired from Apple's Tech Note TN2035.
Diffstat (limited to 'src/gui/painting/qpaintengine_mac_p.h')
-rw-r--r--src/gui/painting/qpaintengine_mac_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/painting/qpaintengine_mac_p.h b/src/gui/painting/qpaintengine_mac_p.h
index 298c145..9b85800 100644
--- a/src/gui/painting/qpaintengine_mac_p.h
+++ b/src/gui/painting/qpaintengine_mac_p.h
@@ -233,6 +233,8 @@ protected:
friend class QMacPrintEngine;
friend class QMacPrintEnginePrivate;
friend void qt_mac_display_change_callbk(CGDirectDisplayID, CGDisplayChangeSummaryFlags, void *);
+ friend void qt_color_profile_changed(CFNotificationCenterRef center, void *,
+ CFStringRef , const void *, CFDictionaryRef);
QCoreGraphicsPaintEngine(QPaintEnginePrivate &dptr);
private: