on xenial help sign in
Obey documentation

/// The component to be used as delegate. This component has to be derived from BaseCarouselDelegate

commitcff0a2ce2520cb06c1ea3e2fb2874cdefc8fd42f authorAlbert Astals <albert.astals@canonical.com> dateMon 14 Apr 2014, 11:20 (13 years ago) parent9c61eb8
1 file changed+7−4
tests/qmltests/Components/tst_Carousel.qml+7−4
tests/qmltests/Components/tst_Carousel.qml+7−4
@@ -31,10 +31,13 @@ Item {
3131 property int createdDelegates: 0
3232 property int destroyedDelegates: 0
3333
34− itemComponent: Rectangle {
35− color: "red"
36− Component.onCompleted: carousel.createdDelegates++
37− Component.onDestruction: carousel.destroyedDelegates++
34+ itemComponent: BaseCarouselDelegate {
35+ Rectangle {
36+ anchors.fill: parent
37+ color: "red"
38+ Component.onCompleted: carousel.createdDelegates++
39+ Component.onDestruction: carousel.destroyedDelegates++
40+ }
3841 }
3942 }
4043 TestCase {