diff options
Diffstat (limited to 'tests/auto/quick/qquicksystempalette/tst_qquicksystempalette.cpp')
-rw-r--r-- | tests/auto/quick/qquicksystempalette/tst_qquicksystempalette.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicksystempalette/tst_qquicksystempalette.cpp b/tests/auto/quick/qquicksystempalette/tst_qquicksystempalette.cpp index 3b74dfd0ed..6764128e7e 100644 --- a/tests/auto/quick/qquicksystempalette/tst_qquicksystempalette.cpp +++ b/tests/auto/quick/qquicksystempalette/tst_qquicksystempalette.cpp @@ -56,7 +56,9 @@ private slots: void activePalette(); void inactivePalette(); void disabledPalette(); +#ifndef QT_NO_WIDGETS void paletteChanged(); +#endif private: QQmlEngine engine; @@ -155,6 +157,7 @@ void tst_qquicksystempalette::disabledPalette() delete object; } +#ifndef QT_NO_WIDGETS void tst_qquicksystempalette::paletteChanged() { QString componentStr = "import QtQuick 2.0\nSystemPalette { }"; @@ -179,6 +182,7 @@ void tst_qquicksystempalette::paletteChanged() delete object; } +#endif QTEST_MAIN(tst_qquicksystempalette) |