From e07de4e0a1bd56aab8f4ee81d6db252e442c3d7a Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 13 Oct 2013 07:25:50 +0200 Subject: Add filter bar to MappingTreeWidget Move matchRecursive from ArchiveModel to SmTreeModel so we can use it here, too. --- smtreemodel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'smtreemodel.h') diff --git a/smtreemodel.h b/smtreemodel.h index 8d46606..d72d53c 100644 --- a/smtreemodel.h +++ b/smtreemodel.h @@ -38,6 +38,8 @@ class SmTreeModel : public QAbstractItemModel { virtual bool setData(const QModelIndex &index, const QVariant &value, int role); virtual QModelIndex find(const QVariant &value, int column = 0, const QModelIndex &parent = QModelIndex()) const; virtual QModelIndex findRecursive(const QVariant &value, int column, const QModelIndex &start) const; + virtual bool matchRecursive(const QModelIndex &parent, const QRegExp ®ex, int column = 0) const; + virtual bool checkParents(const SmTreeItem *item, const QRegExp ®ex, int column) const; // root + parent item bool setRoot(SmTreeItem *rootItem); -- cgit v1.2.3-70-g09d2