aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/folderlistmodel/qdeclarativefolderlistmodel.h
diff options
context:
space:
mode:
authorChris Adams <christopher.adams@nokia.com>2011-05-23 15:38:53 +1000
committerChris Adams <christopher.adams@nokia.com>2011-05-23 17:07:57 +1000
commitcca7611e260c8ba86da3b01a83e70447c1c362bc (patch)
tree5871e736a8096c744c3279117befdd83e8f56daf /src/imports/folderlistmodel/qdeclarativefolderlistmodel.h
parent036cdbf1e128ecb4c5563087591958df93a52459 (diff)
Ensure that showDirs is respected in FolderListModel
Calling index() on a QDirModel can modify the filters applied. This patch to FolderListModel ensures that filtering is reset if required, so that programmatically selecting a subfolder in a folder does not cause that subfolder to become visible if showDirs is set to false. Task-number: QTBUG-17837 Reviewed-by: Martin Jones Change-Id: I449321d5170ecedf2a0cb36483d50020305a26dd
Diffstat (limited to 'src/imports/folderlistmodel/qdeclarativefolderlistmodel.h')
-rw-r--r--src/imports/folderlistmodel/qdeclarativefolderlistmodel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/folderlistmodel/qdeclarativefolderlistmodel.h b/src/imports/folderlistmodel/qdeclarativefolderlistmodel.h
index 17dc84c026..b0d91e4797 100644
--- a/src/imports/folderlistmodel/qdeclarativefolderlistmodel.h
+++ b/src/imports/folderlistmodel/qdeclarativefolderlistmodel.h
@@ -136,6 +136,7 @@ Q_SIGNALS:
//![class end]
private Q_SLOTS:
void refresh();
+ void resetFiltering();
void inserted(const QModelIndex &index, int start, int end);
void removed(const QModelIndex &index, int start, int end);
void handleDataChanged(const QModelIndex &start, const QModelIndex &end);