aboutsummaryrefslogtreecommitdiffstats
path: root/gui/treemodel.h
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-07-30 20:10:36 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-07-30 20:10:36 +0200
commit7da64ee167d518641a479cad1b660c608fb3dede (patch)
tree71a629ac3d07d2fe3c612d267be40c581eb27818 /gui/treemodel.h
parentb12100837239e5c874bf7f384307bf790317d0a3 (diff)
downloadnextpnr-7da64ee167d518641a479cad1b660c608fb3dede.tar.gz
nextpnr-7da64ee167d518641a479cad1b660c608fb3dede.tar.bz2
nextpnr-7da64ee167d518641a479cad1b660c608fb3dede.zip
Implement simple search
Diffstat (limited to 'gui/treemodel.h')
-rw-r--r--gui/treemodel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/treemodel.h b/gui/treemodel.h
index a85c290a..c14efa90 100644
--- a/gui/treemodel.h
+++ b/gui/treemodel.h
@@ -72,6 +72,7 @@ class ContextTreeModel : public QAbstractItemModel
ContextTreeItem *nodeFromIndex(const QModelIndex &idx) const;
QModelIndex indexFromNode(ContextTreeItem *node);
ContextTreeItem *nodeForIdType(const ElementType type, const QString name) const;
+ QList<QModelIndex> search(QString text);
// Override QAbstractItemModel methods
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;