diff --git a/src/widgets/kernel/qapplication.h b/src/widgets/kernel/qapplication.h index 468c468e05..3c61ffe66e 100644 --- a/src/widgets/kernel/qapplication.h +++ b/src/widgets/kernel/qapplication.h @@ -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);