diff options
author | Martin Jones <martin.jones@nokia.com> | 2012-06-01 14:53:26 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-05 04:35:50 +0200 |
commit | 805c30e809a86cc1feabeb3bdbee943a7bbf8796 (patch) | |
tree | 102ce2b32ceacb9b6522d579d8250892e1fdf276 /tests/auto/quick/qquicksystempalette | |
parent | c734706c69ed5b38cc97aea5be3f0553c194aa0a (diff) |
Allow qtdeclarative to compile with -no-widgets
We have no hard requirement for QtWidgets library, so we should
build without it.
Change-Id: I85c85cc1a52bf9daa7ab7916f19bf7cc3ad5845f
Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquicksystempalette')
-rw-r--r-- | tests/auto/quick/qquicksystempalette/qquicksystempalette.pro | 3 | ||||
-rw-r--r-- | tests/auto/quick/qquicksystempalette/tst_qquicksystempalette.cpp | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/quick/qquicksystempalette/qquicksystempalette.pro b/tests/auto/quick/qquicksystempalette/qquicksystempalette.pro index c8825c07fb..f422d26b44 100644 --- a/tests/auto/quick/qquicksystempalette/qquicksystempalette.pro +++ b/tests/auto/quick/qquicksystempalette/qquicksystempalette.pro @@ -5,4 +5,5 @@ macx:CONFIG -= app_bundle SOURCES += tst_qquicksystempalette.cpp CONFIG += parallel_test -QT += core-private gui-private qml-private quick-private widgets testlib +QT += core-private gui-private qml-private quick-private testlib +!contains(QT_CONFIG, no-widgets): QT += widgets 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) |