From cca7611e260c8ba86da3b01a83e70447c1c362bc Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Mon, 23 May 2011 15:38:53 +1000 Subject: 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 --- src/imports/folderlistmodel/qdeclarativefolderlistmodel.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/imports/folderlistmodel/qdeclarativefolderlistmodel.h') 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); -- cgit v1.2.3