aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-07-22 19:43:56 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-07-22 19:43:56 +0200
commitf93fc6fa79276a82b8f6d1070d7f7ddcd65254b2 (patch)
treecaf763fffc5574bc3a3e1fbf47051e0a2de339a5
parent987fdc1b29d9cb7478df49c72f68ce5f3f9f740c (diff)
downloadnextpnr-f93fc6fa79276a82b8f6d1070d7f7ddcd65254b2.tar.gz
nextpnr-f93fc6fa79276a82b8f6d1070d7f7ddcd65254b2.tar.bz2
nextpnr-f93fc6fa79276a82b8f6d1070d7f7ddcd65254b2.zip
Move to new api
-rw-r--r--gui/designwidget.cc15
1 files changed, 3 insertions, 12 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc
index a59307f0..c571e303 100644
--- a/gui/designwidget.cc
+++ b/gui/designwidget.cc
@@ -515,23 +515,14 @@ void DesignWidget::onItemSelectionChanged()
addProperty(delayItem, QVariant::Double, "Min Fall", delay.minFallDelay());
addProperty(delayItem, QVariant::Double, "Max Fall", delay.maxFallDelay());
- QtProperty *belpinItem = addSubGroup(topItem, "BelPin Uphill");
- BelPin uphill = ctx->getBelPinUphill(wire);
- if (uphill.bel != BelId())
- addProperty(belpinItem, QVariant::String, "Bel", ctx->getBelName(uphill.bel).c_str(ctx), ElementType::BEL);
- else
- addProperty(belpinItem, QVariant::String, "Bel", "", ElementType::BEL);
-
- addProperty(belpinItem, QVariant::String, "PortPin", ctx->portPinToId(uphill.pin).c_str(ctx), ElementType::BEL);
-
- QtProperty *downhillItem = addSubGroup(topItem, "BelPin Downhill");
- for (const auto &item : ctx->getBelPinsDownhill(wire)) {
+ QtProperty *belpinsItem = addSubGroup(topItem, "BelPins");
+ for (const auto &item : ctx->getWireBelPins(wire)) {
QString belname = "";
if (item.bel != BelId())
belname = ctx->getBelName(item.bel).c_str(ctx);
QString pinname = ctx->portPinToId(item.pin).c_str(ctx);
- QtProperty *dhItem = addSubGroup(downhillItem, belname + "-" + pinname);
+ QtProperty *dhItem = addSubGroup(belpinsItem, belname + "-" + pinname);
addProperty(dhItem, QVariant::String, "Bel", belname, ElementType::BEL);
addProperty(dhItem, QVariant::String, "PortPin", pinname);
}