diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-07-15 21:28:57 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-07-15 21:28:57 +0200 |
commit | 1d15bbacd125448feb10ec05b0e796e365bee100 (patch) | |
tree | 8c06e70376000b6ef5774ca23085da2d17dc09f0 /gui | |
parent | 2801d82121f4ddac3910b22a54671ba3fe02ecd3 (diff) | |
parent | 21bf78dae9ef95e65b549c60061bce9790b1b611 (diff) | |
download | nextpnr-1d15bbacd125448feb10ec05b0e796e365bee100.tar.gz nextpnr-1d15bbacd125448feb10ec05b0e796e365bee100.tar.bz2 nextpnr-1d15bbacd125448feb10ec05b0e796e365bee100.zip |
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr
Diffstat (limited to 'gui')
-rw-r--r-- | gui/designwidget.cc | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc index 8b9e9d22..335ed929 100644 --- a/gui/designwidget.cc +++ b/gui/designwidget.cc @@ -528,17 +528,28 @@ void DesignWidget::onItemSelectionChanged() addProperty(dhItem, QVariant::String, "Bel", belname, ElementType::BEL);
addProperty(dhItem, QVariant::String, "PortPin", pinname);
}
- /*
- QtProperty *pipsDownItem = addSubGroup(downhillItem, "Pips Downhill");
- for (const auto &item : ctx->getPipsDownhill(wire)) {
- addProperty(pipsDownItem, QVariant::String, "", ctx->getPipName(item).c_str(ctx), ElementType::PIP);
- }
- QtProperty *pipsUpItem = addSubGroup(downhillItem, "Pips Uphill");
- for (const auto &item : ctx->getPipsUphill(wire)) {
- addProperty(pipsUpItem, QVariant::String, "", ctx->getPipName(item).c_str(ctx), ElementType::PIP);
- }
- */
+ int counter = 0;
+ QtProperty *pipsDownItem = addSubGroup(downhillItem, "Pips Downhill");
+ for (const auto &item : ctx->getPipsDownhill(wire)) {
+ addProperty(pipsDownItem, QVariant::String, "", ctx->getPipName(item).c_str(ctx), ElementType::PIP);
+ counter++;
+ if (counter == 50) {
+ addProperty(pipsDownItem, QVariant::String, "Warning", "Too many items...", ElementType::NONE);
+ break;
+ }
+ }
+
+ counter = 0;
+ QtProperty *pipsUpItem = addSubGroup(downhillItem, "Pips Uphill");
+ for (const auto &item : ctx->getPipsUphill(wire)) {
+ addProperty(pipsUpItem, QVariant::String, "", ctx->getPipName(item).c_str(ctx), ElementType::PIP);
+ counter++;
+ if (counter == 50) {
+ addProperty(pipsUpItem, QVariant::String, "Warning", "Too many items...", ElementType::NONE);
+ break;
+ }
+ }
} else if (type == ElementType::PIP) {
IdString c = static_cast<IdStringTreeItem *>(clickItem)->getData();
PipId pip = ctx->getPipByName(c);
|