diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-30 20:10:36 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-30 20:10:36 +0200 |
commit | 7da64ee167d518641a479cad1b660c608fb3dede (patch) | |
tree | 71a629ac3d07d2fe3c612d267be40c581eb27818 /gui/designwidget.h | |
parent | b12100837239e5c874bf7f384307bf790317d0a3 (diff) | |
download | nextpnr-7da64ee167d518641a479cad1b660c608fb3dede.tar.gz nextpnr-7da64ee167d518641a479cad1b660c608fb3dede.tar.bz2 nextpnr-7da64ee167d518641a479cad1b660c608fb3dede.zip |
Implement simple search
Diffstat (limited to 'gui/designwidget.h')
-rw-r--r-- | gui/designwidget.h | 6 |
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
|