From 950f33c1bb6260f830e6974583d0e1424146b386 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Wed, 25 Jul 2018 17:53:01 -0700 Subject: clangformat --- gui/designwidget.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gui') 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 decals; for (auto clickItem : treeWidget->selectedItems()) { IdString value = static_cast(clickItem)->getData(); -- cgit v1.2.3