diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-05-19 02:36:06 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-05-19 02:36:06 (GMT) |
commit | 5f3e8f33083be7bd7b858c8880f52a99952e0b75 (patch) | |
tree | b2d6f519d7a3bc342d8bd882223fed79a591f110 /doc/src/snippets | |
parent | 92b783a4ab9687baaf55d732965fe21aa69146a4 (diff) | |
download | Qt-5f3e8f33083be7bd7b858c8880f52a99952e0b75.zip Qt-5f3e8f33083be7bd7b858c8880f52a99952e0b75.tar.gz Qt-5f3e8f33083be7bd7b858c8880f52a99952e0b75.tar.bz2 |
doc
Diffstat (limited to 'doc/src/snippets')
-rw-r--r-- | doc/src/snippets/declarative/folderlistmodel.qml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/folderlistmodel.qml b/doc/src/snippets/declarative/folderlistmodel.qml new file mode 100644 index 0000000..e90f9fd --- /dev/null +++ b/doc/src/snippets/declarative/folderlistmodel.qml @@ -0,0 +1,17 @@ +//![0] +import Qt 4.7 +import Qt.labs.folderlistmodel 1.0 + +ListView { + FolderListModel { + id: foldermodel + nameFilters: ["*.qml"] + } + Component { + id: filedelegate + Text { text: fileName } + } + model: foldermodel + delegate: filedelegate +} +//![0] |