QApplication::palette missing Q_NO_USING_KEYWORD implementation
authorThiago A. Correa <thiago.correa@gmail.com>
Sun, 7 Oct 2012 05:10:57 +0000 (02:10 -0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 8 Oct 2012 07:01:23 +0000 (09:01 +0200)
Added inline implementation of QApplication::palette when
Q_NO_USING_KEYWORD is defined.

Task-number: QTBUG-27393

Change-Id: I833efb950a579db28fcb243c931c9e22b28ec431
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/widgets/kernel/qapplication.h

index 468c468..3c61ffe 100644 (file)
@@ -115,7 +115,11 @@ public:
     QT_DEPRECATED static inline void setGraphicsSystem(const QString &) {}
 #endif
 
+#ifdef Q_NO_USING_KEYWORD
+    static QPalette palette() { return QGuiApplication::palette(); }
+#else
     using QGuiApplication::palette;
+#endif
     static QPalette palette(const QWidget *);
     static QPalette palette(const char *className);
     static void setPalette(const QPalette &, const char* className = 0);