aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qquickmaterialstyleconf/qquickmaterialstyleconf.pro
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2016-08-19 15:42:00 +0200
committerMitch Curtis <mitch.curtis@qt.io>2016-08-19 14:11:47 +0000
commitdd5f02754320086797e83bb77418c995d6b4d522 (patch)
treedbeb8de45d9db41875ffd1d0b490e4e37114e5f4 /tests/auto/qquickmaterialstyleconf/qquickmaterialstyleconf.pro
parentc3ea95281f30be06ee016451d300365ae600ee1c (diff)
Material: 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_qquickmaterialstyleconf auto test to ensure that global settings are respected. Change-Id: I436773e355c6d470215fb9cfe8fbff402d2979d9 Task-number: QTBUG-55366 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'tests/auto/qquickmaterialstyleconf/qquickmaterialstyleconf.pro')
-rw-r--r--tests/auto/qquickmaterialstyleconf/qquickmaterialstyleconf.pro17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/qquickmaterialstyleconf/qquickmaterialstyleconf.pro b/tests/auto/qquickmaterialstyleconf/qquickmaterialstyleconf.pro
new file mode 100644
index 00000000..fe8953e9
--- /dev/null
+++ b/tests/auto/qquickmaterialstyleconf/qquickmaterialstyleconf.pro
@@ -0,0 +1,17 @@
+CONFIG += testcase
+TARGET = tst_qquickmaterialstyleconf
+SOURCES += tst_qquickmaterialstyleconf.cpp
+
+macos:CONFIG -= app_bundle
+
+QT += core-private gui-private qml-private quick-private testlib quicktemplates2-private quickcontrols2-private
+
+include (../shared/util.pri)
+
+RESOURCES += qquickmaterialstyleconf.qrc
+
+TESTDATA = data/*
+
+OTHER_FILES += \
+ data/*
+