diff options
author | Eddie Hung <e.hung@imperial.ac.uk> | 2018-07-25 17:53:01 -0700 |
---|---|---|
committer | Eddie Hung <e.hung@imperial.ac.uk> | 2018-07-25 17:53:01 -0700 |
commit | 950f33c1bb6260f830e6974583d0e1424146b386 (patch) | |
tree | 5086d59b3be9b4a0b6b3959955db79dc7c5f0bd9 /gui | |
parent | e6015dc695dbd29717bd01694726da5dd1033e27 (diff) | |
download | nextpnr-950f33c1bb6260f830e6974583d0e1424146b386.tar.gz nextpnr-950f33c1bb6260f830e6974583d0e1424146b386.tar.bz2 nextpnr-950f33c1bb6260f830e6974583d0e1424146b386.zip |
clangformat
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();
|