diff options
author | Serge Bazanski <q3k@q3k.org> | 2018-08-01 02:58:35 +0000 |
---|---|---|
committer | Serge Bazanski <q3k@q3k.org> | 2018-08-01 02:58:35 +0000 |
commit | 7d62c89fd534ead842ee0873677f9d0e476b0e28 (patch) | |
tree | e8e5a097d89a898e16e53f5490c83c27779bfdcd /gui/designwidget.h | |
parent | b55ccc12f0b2ac964cb4ff72b191fee2c4e1bdad (diff) | |
parent | 3408e427f9f70c7138b993d76b77ab6c9f2feef4 (diff) | |
download | nextpnr-7d62c89fd534ead842ee0873677f9d0e476b0e28.tar.gz nextpnr-7d62c89fd534ead842ee0873677f9d0e476b0e28.tar.bz2 nextpnr-7d62c89fd534ead842ee0873677f9d0e476b0e28.zip |
Merge branch 'q3k/treemodel-fast' into 'master'
gui: lazy loading tree model
See merge request SymbioticEDA/nextpnr!25
Diffstat (limited to 'gui/designwidget.h')
-rw-r--r-- | gui/designwidget.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/designwidget.h b/gui/designwidget.h index 535fd0c3..628586f4 100644 --- a/gui/designwidget.h +++ b/gui/designwidget.h @@ -51,7 +51,7 @@ class DesignWidget : public QWidget void updateButtons();
void addToHistory(QModelIndex item);
std::vector<DecalXY> getDecals(ElementType type, IdString value);
- void updateHighlightGroup(QList<ContextTreeItem *> item, int group);
+ void updateHighlightGroup(QList<TreeModel::Item *> item, int group);
Q_SIGNALS:
void info(std::string text);
void selected(std::vector<DecalXY> decal, bool keep);
@@ -77,7 +77,7 @@ class DesignWidget : public QWidget QTreeView *treeView;
QItemSelectionModel *selectionModel;
- ContextTreeModel *treeModel;
+ TreeModel::Model *treeModel;
QLineEdit *searchEdit;
QtVariantPropertyManager *variantManager;
QtVariantPropertyManager *readOnlyManager;
@@ -99,7 +99,7 @@ class DesignWidget : public QWidget QAction *actionClear;
QColor highlightColors[8];
- QMap<ContextTreeItem *, int> highlightSelected;
+ QMap<TreeModel::Item *, int> highlightSelected;
QString currentSearch;
QList<QModelIndex> currentSearchIndexes;
|