summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2023-05-01 15:42:08 +0800
committerMitch Curtis <mitch.curtis@qt.io>2023-05-02 18:12:35 +0800
commit098231ae31ac2437fcfdcedf990b39044ee60180 (patch)
treeac32dc9b6187284ec4fe0fd71ce30cddd8e7ba68 /tests
parent7481dff31480867442b1dec9aea0b08d00ef265b (diff)
downloadqtdeclarative-098231ae31ac2437fcfdcedf990b39044ee60180.tar.gz
PageIndicator: fix change listeners being called after destruction
Remove the listeners of the contentItem upon the PageIndicator's destruction. Task-number: QTBUG-98790 Pick-to: 6.2 6.5 Change-Id: Ic03a0ea149806de524567b4115255e308df90105 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/quickcontrols/controls/data/tst_pageindicator.qml9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/auto/quickcontrols/controls/data/tst_pageindicator.qml b/tests/auto/quickcontrols/controls/data/tst_pageindicator.qml
index 837972cdc2..e97dd199ef 100644
--- a/tests/auto/quickcontrols/controls/data/tst_pageindicator.qml
+++ b/tests/auto/quickcontrols/controls/data/tst_pageindicator.qml
@@ -15,12 +15,17 @@ TestCase {
Component {
id: pageIndicator
- PageIndicator { }
+ PageIndicator {
+ objectName: "pageIndicator"
+ contentItem.objectName: "pageIndicatorContentItem"
+ }
}
Component {
id: mouseArea
- MouseArea { }
+ MouseArea {
+ objectName: "mouseArea"
+ }
}
function test_defaults() {