aboutsummaryrefslogtreecommitdiffstats
path: root/gui/designwidget.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-06-28 18:06:31 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-06-28 18:06:31 +0200
commit960c65047877c72498d65ecc401371ab1552c82a (patch)
tree5b0a4aa7063fd6a24ff4a74b9786e8b1daad0a57 /gui/designwidget.cc
parent1676b285ae726eb858d4d7ed089496133ce3de4b (diff)
downloadnextpnr-960c65047877c72498d65ecc401371ab1552c82a.tar.gz
nextpnr-960c65047877c72498d65ecc401371ab1552c82a.tar.bz2
nextpnr-960c65047877c72498d65ecc401371ab1552c82a.zip
clangformat cleanup
Diffstat (limited to 'gui/designwidget.cc')
-rw-r--r--gui/designwidget.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc
index a989080e..2168a673 100644
--- a/gui/designwidget.cc
+++ b/gui/designwidget.cc
@@ -135,8 +135,7 @@ void DesignWidget::newContext(Context *ctx)
bel_root->setText(0, QString("Bels"));
treeWidget->insertTopLevelItem(0, bel_root);
QList<QTreeWidgetItem *> bel_items;
- if (ctx)
- {
+ if (ctx) {
for (auto bel : ctx->getBels()) {
auto name = ctx->getBelName(bel);
bel_items.append(new BelTreeItem(name, ElementType::BEL, QString(name.c_str(ctx))));
@@ -149,8 +148,7 @@ void DesignWidget::newContext(Context *ctx)
QList<QTreeWidgetItem *> wire_items;
wire_root->setText(0, QString("Wires"));
treeWidget->insertTopLevelItem(0, wire_root);
- if (ctx)
- {
+ if (ctx) {
for (auto wire : ctx->getWires()) {
auto name = ctx->getWireName(wire);
wire_items.append(new WireTreeItem(name, ElementType::WIRE, QString(name.c_str(ctx))));
@@ -163,8 +161,7 @@ void DesignWidget::newContext(Context *ctx)
QList<QTreeWidgetItem *> pip_items;
pip_root->setText(0, QString("Pips"));
treeWidget->insertTopLevelItem(0, pip_root);
- if (ctx)
- {
+ if (ctx) {
for (auto pip : ctx->getPips()) {
auto name = ctx->getPipName(pip);
pip_items.append(new PipTreeItem(name, ElementType::PIP, QString(name.c_str(ctx))));