aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qquickuniversalstyleconf/qquickuniversalstyleconf.pro
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2016-08-19 16:00:03 +0200
committerMitch Curtis <mitch.curtis@qt.io>2016-08-19 14:12:00 +0000
commit9b7e62a88b9d86ba6b391bf7abc18cba3c147ed5 (patch)
treeee0e87b37b314dd5357bb192613bf91bb91793a1 /tests/auto/qquickuniversalstyleconf/qquickuniversalstyleconf.pro
parent47f32f2f768edbaa96c9356f0b2b4cb4f566b814 (diff)
Universal: ensure setting background/foreground works
- Add HasGlobalForeground and HasGlobalBackground. These are set to true when a foreground/background color is specified via settings (qtquickcontrols2.conf file or environment variables), and then used to initialize each attached style object's m_hasForeground and m_hasBackground property. - Add tst_qquickuniversalstyleconf auto test to ensure that global settings are respected. Task-number: QTBUG-55366 Change-Id: I7a8b219506f9528c4ae323bd890b418ba056ed23 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'tests/auto/qquickuniversalstyleconf/qquickuniversalstyleconf.pro')
-rw-r--r--tests/auto/qquickuniversalstyleconf/qquickuniversalstyleconf.pro17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/qquickuniversalstyleconf/qquickuniversalstyleconf.pro b/tests/auto/qquickuniversalstyleconf/qquickuniversalstyleconf.pro
new file mode 100644
index 00000000..9aaedbee
--- /dev/null
+++ b/tests/auto/qquickuniversalstyleconf/qquickuniversalstyleconf.pro
@@ -0,0 +1,17 @@
+CONFIG += testcase
+TARGET = tst_qquickuniversalstyleconf
+SOURCES += tst_qquickuniversalstyleconf.cpp
+
+macos:CONFIG -= app_bundle
+
+QT += core-private gui-private qml-private quick-private testlib quicktemplates2-private quickcontrols2-private
+
+include (../shared/util.pri)
+
+RESOURCES += qquickuniversalstyleconf.qrc
+
+TESTDATA = data/*
+
+OTHER_FILES += \
+ data/*
+