diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-09-28 15:59:10 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-09-28 14:37:14 +0000 |
commit | bde0f36262987b244d215bc10f68b09e4a380660 (patch) | |
tree | 73698d52106ad1b4e8b02f9ea6ed23cdd7ef3d9d /tests/auto/controls/data/tst_tooltip.qml | |
parent | 25a3f25ce98c0a88582e97cfcdede970e7cc4a6d (diff) |
Fix QQuickToolTipAttached parent
The parent must not be a null item.
Change-Id: Ide71a69e8cde8114542fa97570e0e5f5d724a884
Task-number: QTBUG-56243
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/controls/data/tst_tooltip.qml')
-rw-r--r-- | tests/auto/controls/data/tst_tooltip.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_tooltip.qml b/tests/auto/controls/data/tst_tooltip.qml index 04064fa1..b80a2cae 100644 --- a/tests/auto/controls/data/tst_tooltip.qml +++ b/tests/auto/controls/data/tst_tooltip.qml @@ -185,6 +185,7 @@ TestCase { function test_warning() { ignoreWarning(Qt.resolvedUrl("tst_tooltip.qml") + ":68:5: QML QtObject: ToolTip must be attached to an Item") - object.ToolTip.text = "" + ignoreWarning("<Unknown File>:1:30: QML ToolTip: cannot find any window to open popup in.") + object.ToolTip.show("") // don't crash (QTBUG-56243) } } |