aboutsummaryrefslogtreecommitdiffstats
path: root/gui/designwidget.h
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-08-01 00:22:09 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-08-01 00:22:09 +0100
commit6241052e115695e7f47029a7e2058607dfe20e07 (patch)
tree3176b0813405a9b93ba26ff8dd5294ddfa75d68c /gui/designwidget.h
parentcc0ffee3fe53371915a1aa583878b15a57f9e390 (diff)
parentbf78c055953256c4f67a6a670db7c970da2ce161 (diff)
downloadnextpnr-6241052e115695e7f47029a7e2058607dfe20e07.tar.gz
nextpnr-6241052e115695e7f47029a7e2058607dfe20e07.tar.bz2
nextpnr-6241052e115695e7f47029a7e2058607dfe20e07.zip
Merge branch 'master' into q3k/treemodel-fast
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 b229a8a8..d6af83a0 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<LazyTreeItem *, int> highlightSelected;
+
+ QString currentSearch;
+ QList<QModelIndex> currentSearchIndexes;
+ int currentIndex;
};
NEXTPNR_NAMESPACE_END