QApplication::palette missing Q_NO_USING_KEYWORD implementation

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>
This commit is contained in:
Thiago A. Correa 2012-10-07 02:10:57 -03:00 committed by The Qt Project
parent 7e6e141234
commit a0c3a57aed

View 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);