aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-07-17 14:29:16 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-07-17 14:29:16 +0200
commitc2fe09ec83409e342cfb8d2d7d861b602eb9254c (patch)
tree6302ee17b3414c51a8397c4cf1d6a659a5910a4c /gui
parent7c89aed70e433c4d471960b07390e17f91ae3f84 (diff)
downloadnextpnr-c2fe09ec83409e342cfb8d2d7d861b602eb9254c.tar.gz
nextpnr-c2fe09ec83409e342cfb8d2d7d861b602eb9254c.tar.bz2
nextpnr-c2fe09ec83409e342cfb8d2d7d861b602eb9254c.zip
QT 5.5 does not have this feature and it is version in Ubuntu 16.04
Diffstat (limited to 'gui')
-rw-r--r--gui/yosystab.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/yosystab.cc b/gui/yosystab.cc
index f2e99cbc..fba2362d 100644
--- a/gui/yosystab.cc
+++ b/gui/yosystab.cc
@@ -61,7 +61,11 @@ YosysTab::YosysTab(QString folder, QWidget *parent) : QWidget(parent)
connect(process, SIGNAL(readyReadStandardError()), this, SLOT(onReadyReadStandardError()));
connect(process, SIGNAL(readyReadStandardOutput()), this, SLOT(onReadyReadStandardOutput()));
connect(process, &QProcess::started, this, [this] { lineEdit->setEnabled(true); });
+#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
+ connect(process, &QProcess::error, this, [this](QProcess::ProcessError error) {
+#else
connect(process, &QProcess::errorOccurred, this, [this](QProcess::ProcessError error) {
+#endif
if (error == QProcess::FailedToStart) {
QMessageBox::critical(
this, QString::fromUtf8("Yosys cannot be started!"),