Add "showFiles" property to FolderListModel
authorAlberto Mardegan <info@mardy.it>
Wed, 26 Dec 2012 12:59:52 +0000 (13:59 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 25 Jun 2013 18:53:52 +0000 (20:53 +0200)
commit6ad5400c54302ee5e099e478e91de53386b62902
treeb93b4141d6d1f527c6cbab0fd3bdcec4af2c1c5c
parent0f97dd8b3d86d60897fed0e87d95de2e3ed59206
Add "showFiles" property to FolderListModel

This property, if set to "false", causes the FolderListModel not to show
regular files. This can be useful when someone wants to list only the
directories; for instance, one can have a ListView showing only the
directories (with "showDirs: true" and "showFiles: false") and another
for showing the directory contents ("showFiles: true" and "showDirs:
false").

Since by default this property is "true", the behavior of applications
who don't use this property is unchanged.

Change-Id: I6eaa9c4a6a582ea81fa07bad129a4c9b15fdcaea
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/imports/folderlistmodel/fileinfothread.cpp
src/imports/folderlistmodel/fileinfothread_p.h
src/imports/folderlistmodel/qquickfolderlistmodel.cpp
src/imports/folderlistmodel/qquickfolderlistmodel.h
tests/auto/qml/qquickfolderlistmodel/tst_qquickfolderlistmodel.cpp