diff options
author | Eddie Hung <e.hung@imperial.ac.uk> | 2018-07-25 17:55:20 -0700 |
---|---|---|
committer | Eddie Hung <e.hung@imperial.ac.uk> | 2018-07-25 17:55:20 -0700 |
commit | a21cc4dd5bbbf1c9e5894d8c30a2c3252d21dfd0 (patch) | |
tree | ea93dcd47f9e84145ba66de353e1848ebc34cbf5 /gui | |
parent | 7c8c13aba14ee51851506e0c1cfc0c995db21102 (diff) | |
parent | f78a74b9cff79a41f992cfaf20deb88054ea27a6 (diff) | |
download | nextpnr-a21cc4dd5bbbf1c9e5894d8c30a2c3252d21dfd0.tar.gz nextpnr-a21cc4dd5bbbf1c9e5894d8c30a2c3252d21dfd0.tar.bz2 nextpnr-a21cc4dd5bbbf1c9e5894d8c30a2c3252d21dfd0.zip |
Merge remote-tracking branch 'origin/master' into redist_slack
Diffstat (limited to 'gui')
-rw-r--r-- | gui/designwidget.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc index 93b53926..c17990a5 100644 --- a/gui/designwidget.cc +++ b/gui/designwidget.cc @@ -319,7 +319,7 @@ void DesignWidget::newContext(Context *ctx) pip_root->setText(0, "Pips");
pip_root->setFlags(pip_root->flags() & ~Qt::ItemIsSelectable);
treeWidget->insertTopLevelItem(0, pip_root);
-#ifndef ARCH_ECP5
+#ifndef ARCH_ECP5
if (ctx) {
for (auto pip : ctx->getPips()) {
auto id = ctx->getPipName(pip);
@@ -346,7 +346,7 @@ void DesignWidget::newContext(Context *ctx) for (auto pip : nameToItem[2].toStdMap()) {
pip_root->addChild(pip.second);
}
-#endif
+#endif
nets_root = new QTreeWidgetItem(treeWidget);
nets_root->setText(0, "Nets");
@@ -512,8 +512,7 @@ void DesignWidget::onItemSelectionChanged() if (treeWidget->selectedItems().size() == 0)
return;
- if (treeWidget->selectedItems().size() > 1)
- {
+ if (treeWidget->selectedItems().size() > 1) {
std::vector<DecalXY> decals;
for (auto clickItem : treeWidget->selectedItems()) {
IdString value = static_cast<IdStringTreeItem *>(clickItem)->getData();
|