Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/examples/quick/controls/gallery/content/ModelView.qml b/examples/quick/controls/gallery/content/ModelView.qml
- index 5474f1b..7972d82 100644
- --- a/examples/quick/controls/gallery/content/ModelView.qml
- +++ b/examples/quick/controls/gallery/content/ModelView.qml
- @@ -66,13 +66,14 @@ Item {
- ListModel {
- id: dummyModel
- Component.onCompleted: {
- - for (var i = 0 ; i < 100 ; ++i) {
- + for (var i = 0 ; i < 1000 ; ++i) {
- append({"index": i, "title": "A title " + i, "imagesource" :"http://someurl.com", "credit" : "N/A"})
- }
- }
- }
- TableView{
- + id: tv
- model: dummyModel
- anchors.fill: parent
- @@ -100,4 +101,20 @@ Item {
- visible: true
- }
- }
- +
- + Timer {
- + id: tt
- + property int index: 0
- + interval: 20
- + repeat: true
- + onTriggered: {
- + index = (index + 30) % 1000;
- + tv.positionViewAtRow(index);
- + }
- + }
- +
- + Button {
- + text: "Start Timer"
- + onClicked: tt.start()
- + }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement