aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/src-qml/test/File.qml
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2017-12-15 22:52:34 +0000
committerWeblate <noreply@weblate.org>2017-12-15 22:52:34 +0000
commit9155556b94b0fe25ef3d5398a7f70dcdc1841d69 (patch)
treeae5af06e4741c8767344be6d90a7307bcddb5b5d /src-qt5/src-qml/test/File.qml
parentTranslated using Weblate (Russian) (diff)
parentAnother minor networking fix. (diff)
downloadlumina-9155556b94b0fe25ef3d5398a7f70dcdc1841d69.tar.gz
lumina-9155556b94b0fe25ef3d5398a7f70dcdc1841d69.tar.bz2
lumina-9155556b94b0fe25ef3d5398a7f70dcdc1841d69.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/src-qml/test/File.qml')
-rw-r--r--src-qt5/src-qml/test/File.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/src-qt5/src-qml/test/File.qml b/src-qt5/src-qml/test/File.qml
new file mode 100644
index 00000000..4713a454
--- /dev/null
+++ b/src-qt5/src-qml/test/File.qml
@@ -0,0 +1,21 @@
+import QtQuick 2.0
+import Qt.labs.folderlistmodel 2.1
+
+ListView {
+ width: 200; height: 400
+
+
+ FolderListModel {
+ id: folderModel
+ folder: "/usr/local/videos"
+ }
+
+ Component {
+ id: fileDelegate
+ Text { text: fileName }
+ }
+
+ model: folderModel
+ delegate: fileDelegate
+ Component.onCompleted: { console.log(folderModel.count) }
+}
bgstack15