diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2019-06-25 18:19:25 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2019-06-25 18:19:25 +0200 |
commit | be47fc3e9a81a4890b05223ae18803cb07674dc9 (patch) | |
tree | b0690ae9c7fd1c06db96ab036c3e177d50f6961d /gui/basewindow.cc | |
parent | ec47ce2320fdc9d698e71c07af0844f7ecc2445c (diff) | |
download | nextpnr-be47fc3e9a81a4890b05223ae18803cb07674dc9.tar.gz nextpnr-be47fc3e9a81a4890b05223ae18803cb07674dc9.tar.bz2 nextpnr-be47fc3e9a81a4890b05223ae18803cb07674dc9.zip |
clangformat run
Diffstat (limited to 'gui/basewindow.cc')
-rw-r--r-- | gui/basewindow.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gui/basewindow.cc b/gui/basewindow.cc index 5b03b667..550a4b93 100644 --- a/gui/basewindow.cc +++ b/gui/basewindow.cc @@ -310,11 +310,11 @@ void BaseMainWindow::save_json() {
QString fileName = QFileDialog::getSaveFileName(this, QString("Save JSON"), QString(), QString("*.json"));
if (!fileName.isEmpty()) {
- std::string fn = fileName.toStdString();
+ std::string fn = fileName.toStdString();
std::ofstream f(fn);
if (write_json_file(f, fn, ctx.get()))
log("Saving JSON successful.\n");
- else
+ else
log("Saving JSON failed.\n");
}
}
@@ -335,7 +335,7 @@ void BaseMainWindow::budget_finish(bool status) {
disableActions();
if (status) {
- log("Assigning timing budget successful.\n");
+ log("Assigning timing budget successful.\n");
updateActions();
} else {
log("Assigning timing budget failed.\n");
@@ -399,7 +399,7 @@ void BaseMainWindow::place() { Q_EMIT task->place(timing_driven); } void BaseMainWindow::disableActions()
{
- actionLoadJSON->setEnabled(true);
+ actionLoadJSON->setEnabled(true);
actionPack->setEnabled(false);
actionAssignBudget->setEnabled(false);
actionPlace->setEnabled(false);
@@ -416,13 +416,12 @@ void BaseMainWindow::disableActions() void BaseMainWindow::updateActions()
{
- if (ctx->settings.find(ctx->id("pack"))==ctx->settings.end())
+ if (ctx->settings.find(ctx->id("pack")) == ctx->settings.end())
actionPack->setEnabled(true);
- else if (ctx->settings.find(ctx->id("place"))==ctx->settings.end()) {
+ else if (ctx->settings.find(ctx->id("place")) == ctx->settings.end()) {
actionAssignBudget->setEnabled(true);
- actionPlace->setEnabled(true);
- }
- else if (ctx->settings.find(ctx->id("route"))==ctx->settings.end())
+ actionPlace->setEnabled(true);
+ } else if (ctx->settings.find(ctx->id("route")) == ctx->settings.end())
actionRoute->setEnabled(true);
onUpdateActions();
|