summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2020-03-31 13:46:43 +0200
committerAlex Blasche <alexander.blasche@qt.io>2020-03-31 15:24:06 +0200
commite5658a34159ae32cff7a6c0e1295171c00fe923a (patch)
treef12456298374aad3f2866b4a90e4f6beca0e9cc5
parenta69544a7b444301c1d3f7956c89eb65ea0b3ab83 (diff)
downloadqtquickcontrols-e5658a34159ae32cff7a6c0e1295171c00fe923a.tar.gz
Push dependency for qtdeclarative and fix resulting test failures
This enables other modules depending on quickcontrols and declarative to resolve their conflicts. Change-Id: Iea28fa75157034d85dc24f44491ca986902db547 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r--dependencies.yaml5
-rw-r--r--tests/auto/controls/data/tst_combobox.qml6
-rw-r--r--tests/auto/controls/data/tst_textfield.qml2
3 files changed, 5 insertions, 8 deletions
diff --git a/dependencies.yaml b/dependencies.yaml
index 834fab54..a9641a24 100644
--- a/dependencies.yaml
+++ b/dependencies.yaml
@@ -1,7 +1,4 @@
dependencies:
- ../qtdeclarative:
- ref: 406f15ce0e2707452462ff73b2d660ece960623f
- required: true
../qtgraphicaleffects:
- ref: 554f6b98e27bf6ad50d663f2ce1b4726c223eb05
+ ref: 0e5719d4cd3b0dddeee8dae06d158f534293bd89
required: false
diff --git a/tests/auto/controls/data/tst_combobox.qml b/tests/auto/controls/data/tst_combobox.qml
index bccac8d2..01ebbf79 100644
--- a/tests/auto/controls/data/tst_combobox.qml
+++ b/tests/auto/controls/data/tst_combobox.qml
@@ -155,12 +155,12 @@ TestCase {
}
function test_validator() {
- var comboBox = Qt.createQmlObject('import QtQuick 2.2; \
+ var comboBox = Qt.createQmlObject('import QtQuick 2.14; \
import QtQuick.Controls 1.2; \
ComboBox { \
editable: true; \
- validator: RegExpValidator { \
- regExp: /(red|blue|green)?/ \
+ validator: RegularExpressionValidator { \
+ regularExpression: /(red|blue|green)?/ \
}}', testCase, '')
comboBox.editText = "blu"
diff --git a/tests/auto/controls/data/tst_textfield.qml b/tests/auto/controls/data/tst_textfield.qml
index 64b3fad0..111d01b4 100644
--- a/tests/auto/controls/data/tst_textfield.qml
+++ b/tests/auto/controls/data/tst_textfield.qml
@@ -141,7 +141,7 @@ TestCase {
}
function test_validator() {
- var textfield = Qt.createQmlObject('import QtQuick 2.2; import QtQuick.Controls 1.2; TextField {validator: RegExpValidator { regExp: /(red|blue|green)?/; }}', testCase, '')
+ var textfield = Qt.createQmlObject('import QtQuick 2.14; import QtQuick.Controls 1.2; TextField {validator: RegularExpressionValidator { regularExpression: /(red|blue|green)?/; }}', testCase, '')
textfield.text = "blu"
compare(textfield.acceptableInput, false)