From d9ab60c15b93e6ed46d72e1c5001d44bafc1d86b Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Fri, 4 Sep 2020 17:38:48 +0200 Subject: 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 --- tests/auto/controls/data/tst_tooltip.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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(":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) } -- cgit v1.2.3