diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2013-08-15 14:00:03 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-17 16:01:42 +0200 |
commit | 9cde5d427a1fc1c2d36b853e1261d08f8dbfa126 (patch) | |
tree | aa96f86f11a3a4a6019d72c2933066b59997d63f /examples/quick/controls/gallery/content | |
parent | ac39d220f2989286d871a16f064f4de69098f167 (diff) | |
download | qtquickcontrols-9cde5d427a1fc1c2d36b853e1261d08f8dbfa126.tar.gz |
Add TableViewColumn::movable
Change-Id: Ibf1b68d4c63ca02c603d5203128bb94984a809f2
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'examples/quick/controls/gallery/content')
-rw-r--r-- | examples/quick/controls/gallery/content/ModelView.qml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/quick/controls/gallery/content/ModelView.qml b/examples/quick/controls/gallery/content/ModelView.qml index e733793b..5bbb34f4 100644 --- a/examples/quick/controls/gallery/content/ModelView.qml +++ b/examples/quick/controls/gallery/content/ModelView.qml @@ -67,7 +67,7 @@ Item { id: dummyModel Component.onCompleted: { for (var i = 0 ; i < 100 ; ++i) { - append({"title": "A title " + i, "imagesource" :"http://someurl.com", "credit" : "N/A"}) + append({"index": i, "title": "A title " + i, "imagesource" :"http://someurl.com", "credit" : "N/A"}) } } } @@ -77,6 +77,13 @@ Item { anchors.fill: parent TableViewColumn { + role: "index" + title: "#" + width: 36 + resizable: false + movable: false + } + TableViewColumn { role: "title" title: "Title" width: 120 |