diff options
Diffstat (limited to 'gui/designwidget.cc')
-rw-r--r-- | gui/designwidget.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc index 989b55fe..89babda2 100644 --- a/gui/designwidget.cc +++ b/gui/designwidget.cc @@ -514,6 +514,13 @@ void DesignWidget::onClickedBel(BelId bel) Q_EMIT selected(getDecals(ElementType::BEL, ctx->getBelName(bel)));
}
+void DesignWidget::onClickedWire(WireId wire)
+{
+ QTreeWidgetItem *item = nameToItem[getElementIndex(ElementType::WIRE)].value(ctx->getWireName(wire).c_str(ctx));
+ treeWidget->setCurrentItem(item);
+ Q_EMIT selected(getDecals(ElementType::WIRE, ctx->getWireName(wire)));
+}
+
void DesignWidget::onItemSelectionChanged()
{
if (treeWidget->selectedItems().size() == 0)
|