diff options
| author | Peter Penz <[email protected]> | 2011-12-10 21:28:01 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-12-10 21:30:07 +0100 |
| commit | cf704d2db699887a6f262cd51313e6ae02e4a8bd (patch) | |
| tree | 661b23c6083389db9ed3dde816f0f9b5c58f8612 /src/kitemviews/kfileitemmodel.h | |
| parent | 780e42533a6ae37dbc09df52a76c9eb59e59571e (diff) | |
Support wildcards for the filter
Thanks to Janardhan Reddy for the patch!
BUG: 155986
FIXED-IN: 4.8.0
Diffstat (limited to 'src/kitemviews/kfileitemmodel.h')
| -rw-r--r-- | src/kitemviews/kfileitemmodel.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/kitemviews/kfileitemmodel.h b/src/kitemviews/kfileitemmodel.h index 36ed37ba6..20cc75e52 100644 --- a/src/kitemviews/kfileitemmodel.h +++ b/src/kitemviews/kfileitemmodel.h @@ -23,6 +23,7 @@ #include <libdolphin_export.h> #include <KFileItemList> #include <KUrl> +#include <kitemviews/kfileitemmodelfilter_p.h> #include <kitemviews/kitemmodelbase.h> #include <QHash> @@ -293,11 +294,6 @@ private: */ bool isChildItem(int index) const; - /** - * @return True if the given item matches with the current set name filter. - */ - bool matchesNameFilter(const KFileItem& item) const; - private: QWeakPointer<KDirLister> m_dirLister; @@ -311,7 +307,7 @@ private: QList<ItemData*> m_itemData; QHash<KUrl, int> m_items; // Allows O(1) access for KFileItemModel::index(const KFileItem& item) - QString m_nameFilter; + KFileItemModelFilter m_filter; QSet<KFileItem> m_filteredItems; // Items that got hidden by KFileItemModel::setNameFilter() bool m_requestRole[RolesCount]; |
