aboutsummaryrefslogtreecommitdiffstats
path: root/gui/designwidget.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/designwidget.h
parentb12100837239e5c874bf7f384307bf790317d0a3 (diff)
downloadnextpnr-7da64ee167d518641a479cad1b660c608fb3dede.tar.gz
nextpnr-7da64ee167d518641a479cad1b660c608fb3dede.tar.bz2
nextpnr-7da64ee167d518641a479cad1b660c608fb3dede.zip
Implement simple search
Diffstat (limited to 'gui/designwidget.h')
-rw-r--r--gui/designwidget.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/designwidget.h b/gui/designwidget.h
index 27ead589..535fd0c3 100644
--- a/gui/designwidget.h
+++ b/gui/designwidget.h
@@ -64,6 +64,7 @@ class DesignWidget : public QWidget
void onSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
void onItemDoubleClicked(QTreeWidgetItem *item, int column);
void onDoubleClicked(const QModelIndex &index);
+ void onSearchInserted();
public Q_SLOTS:
void newContext(Context *ctx);
void updateTree();
@@ -77,6 +78,7 @@ class DesignWidget : public QWidget
QTreeView *treeView;
QItemSelectionModel *selectionModel;
ContextTreeModel *treeModel;
+ QLineEdit *searchEdit;
QtVariantPropertyManager *variantManager;
QtVariantPropertyManager *readOnlyManager;
QtGroupPropertyManager *groupManager;
@@ -98,6 +100,10 @@ class DesignWidget : public QWidget
QColor highlightColors[8];
QMap<ContextTreeItem *, int> highlightSelected;
+
+ QString currentSearch;
+ QList<QModelIndex> currentSearchIndexes;
+ int currentIndex;
};
NEXTPNR_NAMESPACE_END