From 8b534487044dfb3b464431ecb91ef4e0864af4ed Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Tue, 8 Sep 2020 17:33:17 +0200 Subject: Default to the most appropriate built-in style if none is specified [ChangeLog][Styles] An appropriate built-in style is now used as the default style if one is available for the target platform. For example, when running a Qt Quick Controls application on macOS, the macOS style will be used. On Android, the Material style will be used. When running on e.g. an embedded device, where no native style is available, use the Basic (formerly "Default") style. Change-Id: Ie61d1a8a1a83fbeba63387c7ca3671084f47bc04 Fixes: QTBUG-86403 Reviewed-by: Volker Hilsheimer --- tests/auto/controls/basic/tst_basic.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/auto/controls/basic/tst_basic.cpp') diff --git a/tests/auto/controls/basic/tst_basic.cpp b/tests/auto/controls/basic/tst_basic.cpp index 24b27cf6..95d7e36a 100644 --- a/tests/auto/controls/basic/tst_basic.cpp +++ b/tests/auto/controls/basic/tst_basic.cpp @@ -35,10 +35,12 @@ ****************************************************************************/ #include +#include int main(int argc, char *argv[]) { QTEST_SET_MAIN_SOURCE_PATH qputenv("QML_NO_TOUCH_COMPRESSION", "1"); + QQuickStyle::setStyle("Basic"); return quick_test_main(argc, argv, "tst_controls::Basic", TST_CONTROLS_DATA); } -- cgit v1.2.3