diff options
Diffstat (limited to 'tests/auto/palette/tst_palette.cpp')
-rw-r--r-- | tests/auto/palette/tst_palette.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/palette/tst_palette.cpp b/tests/auto/palette/tst_palette.cpp index 6e41ca49..b69f03b4 100644 --- a/tests/auto/palette/tst_palette.cpp +++ b/tests/auto/palette/tst_palette.cpp @@ -84,10 +84,10 @@ private slots: void tst_palette::initTestCase() { - QQmlDataTest::initTestCase(); - QQuickStyle::setStyle("Basic"); + QQmlDataTest::initTestCase(); + // Import QtQuick.Controls to initialize styles and themes so that // QQuickControlPrivate::themePalette() returns a palette from the // style's theme instead of the platform's theme. |