on xenial help sign in
Obey documentation
cff0a2cAlbert Astals
tests/qmltests/Components/tst_Carousel.qml+7−4
@@ -31,10 +31,13 @@ Item {
31 property int createdDelegates: 0
31 property int createdDelegates: 0
32 property int destroyedDelegates: 0
32 property int destroyedDelegates: 0
33
33
34+ itemComponent: BaseCarouselDelegate {
34− itemComponent: Rectangle {
35+ Rectangle {
36+ anchors.fill: parent
35− color: "red"
37+ color: "red"
36− Component.onCompleted: carousel.createdDelegates++
38+ Component.onCompleted: carousel.createdDelegates++
37− Component.onDestruction: carousel.destroyedDelegates++
39+ Component.onDestruction: carousel.destroyedDelegates++
40+ }
38 }
41 }
39 }
42 }
40 TestCase {
43 TestCase {