aboutsummaryrefslogtreecommitdiffstats
path: root/gui/designwidget.h
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-07-15 15:12:31 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-07-15 15:12:31 +0200
commit3eb34bf38b8e2da66b3852bf35927a0b540a3cff (patch)
tree53339d77fe1bbfba64d5c573f01e8b141b9491b5 /gui/designwidget.h
parentbf0b1d2db3e071f5606e117d5fc5f2213b948997 (diff)
downloadnextpnr-3eb34bf38b8e2da66b3852bf35927a0b540a3cff.tar.gz
nextpnr-3eb34bf38b8e2da66b3852bf35927a0b540a3cff.tar.bz2
nextpnr-3eb34bf38b8e2da66b3852bf35927a0b540a3cff.zip
make linked items clickable
Diffstat (limited to 'gui/designwidget.h')
-rw-r--r--gui/designwidget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/designwidget.h b/gui/designwidget.h
index 50f00bbe..8f2fa375 100644
--- a/gui/designwidget.h
+++ b/gui/designwidget.h
@@ -56,6 +56,7 @@ class DesignWidget : public QWidget
const ElementType &type = ElementType::NONE);
QString getElementTypeName(ElementType type);
ElementType getElementTypeByName(QString type);
+ int getElementIndex(ElementType type);
Q_SIGNALS:
void info(std::string text);
void selected(std::vector<DecalXY> decal);
@@ -83,6 +84,9 @@ class DesignWidget : public QWidget
QMap<QtProperty *, QString> propertyToId;
QMap<QString, QtProperty *> idToProperty;
+
+ QMap<QString, QTreeWidgetItem *> nameToItem[6];
+
QTreeWidgetItem *nets_root;
QTreeWidgetItem *cells_root;