diff options
author | Gatis Paeglis <gatis.paeglis@digia.com> | 2014-08-12 14:46:05 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@digia.com> | 2014-08-22 23:00:37 +0200 |
commit | 253e9257e1f586d1c1dfa585aa6f862d310cdec3 (patch) | |
tree | 4425049801c343aac4c39ee127104611b1484366 /tests/auto/qml/qquickfolderlistmodel/data | |
parent | 3cc2b8d7d94361ef786304024fd2ddca4103f94b (diff) |
Introspect qrc files in FolderListModel.
And don't use "file watchers" for resource file paths,
otherwise it generates the following warning:
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No
such file or directory
Change-Id: I6b75c9195fb2b2ba7b3e0bb7d146fc5cd343927e
Task-number: QTBUG-40307
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'tests/auto/qml/qquickfolderlistmodel/data')
-rw-r--r-- | tests/auto/qml/qquickfolderlistmodel/data/introspect.qrc | 5 | ||||
-rw-r--r-- | tests/auto/qml/qquickfolderlistmodel/data/qrc.qml | 7 | ||||
-rw-r--r-- | tests/auto/qml/qquickfolderlistmodel/data/txtdir/hello.txt | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/qml/qquickfolderlistmodel/data/introspect.qrc b/tests/auto/qml/qquickfolderlistmodel/data/introspect.qrc new file mode 100644 index 0000000000..9f07597bde --- /dev/null +++ b/tests/auto/qml/qquickfolderlistmodel/data/introspect.qrc @@ -0,0 +1,5 @@ +<RCC> +<qresource prefix="/myprefix/subdir"> +<file>txtdir/hello.txt</file> +</qresource> +</RCC> diff --git a/tests/auto/qml/qquickfolderlistmodel/data/qrc.qml b/tests/auto/qml/qquickfolderlistmodel/data/qrc.qml new file mode 100644 index 0000000000..30bc290dc9 --- /dev/null +++ b/tests/auto/qml/qquickfolderlistmodel/data/qrc.qml @@ -0,0 +1,7 @@ +import Qt.labs.folderlistmodel 2.1 + +FolderListModel { + nameFilters: [ "*.txt" ] + folder: "qrc:/myprefix/subdir/txtdir" +} + diff --git a/tests/auto/qml/qquickfolderlistmodel/data/txtdir/hello.txt b/tests/auto/qml/qquickfolderlistmodel/data/txtdir/hello.txt new file mode 100644 index 0000000000..87186bd001 --- /dev/null +++ b/tests/auto/qml/qquickfolderlistmodel/data/txtdir/hello.txt @@ -0,0 +1 @@ +Hello from hello.txt |