diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2020-09-04 17:38:48 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2020-09-07 14:55:55 +0200 |
commit | d9ab60c15b93e6ed46d72e1c5001d44bafc1d86b (patch) | |
tree | c20f08beb16f2726a03edc05769f160500814f94 /tests | |
parent | 3acf24131c7cc1b7cccf59cab0d745099c28af5b (diff) |
QQuickToolTip: don't specify QML import version when creating instance
Not all styles will have a specific version, so don't specify it.
Change-Id: I92f020314d76934f286ca2946e994e2d1c5d37e5
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/controls/data/tst_tooltip.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/controls/data/tst_tooltip.qml b/tests/auto/controls/data/tst_tooltip.qml index 27ba6264..b4e992a4 100644 --- a/tests/auto/controls/data/tst_tooltip.qml +++ b/tests/auto/controls/data/tst_tooltip.qml @@ -218,8 +218,8 @@ TestCase { } function test_warning() { - ignoreWarning(Qt.resolvedUrl("tst_tooltip.qml") + ":78:5: QML QtObject: ToolTip must be attached to an Item") - ignoreWarning("<Unknown File>:1:30: QML ToolTip: cannot find any window to open popup in.") + ignoreWarning(new RegExp(".*QML QtObject: ToolTip must be attached to an Item")) + ignoreWarning(new RegExp(".*: QML ToolTip: cannot find any window to open popup in.")) object.ToolTip.show("") // don't crash (QTBUG-56243) } |