If we have a getter, we also need the setter to be
symmetric.
Change-Id: Ibcb20d66c711e4c1bebd448781fa9eddb9cd773f
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
return *QGuiApplicationPrivate::app_pal;
}
+void QGuiApplication::setPalette(const QPalette &pal)
+{
+ if (QGuiApplicationPrivate::app_pal && pal.isCopyOf(*QGuiApplicationPrivate::app_pal))
+ return;
+ if (!QGuiApplicationPrivate::app_pal)
+ QGuiApplicationPrivate::app_pal = new QPalette(pal);
+ else
+ *QGuiApplicationPrivate::app_pal = pal;
+}
+
QFont QGuiApplication::font()
{
QMutexLocker locker(applicationFontMutex());
#endif
static QPalette palette();
+ static void setPalette(const QPalette &pal);
static Qt::KeyboardModifiers keyboardModifiers();
static Qt::MouseButtons mouseButtons();