diff options
author | David Shah <dave@ds0.me> | 2019-04-17 11:03:06 +0100 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2019-04-17 11:03:06 +0100 |
commit | ede81dc095b4766e3771a59bb71536e769e12c42 (patch) | |
tree | 6ed314dd35fb0d844f3330494b85eeb8dcc7b8d5 /gui | |
parent | 48c4c1ed0561e643a591ed7fca21c69954abd8d2 (diff) | |
download | nextpnr-ede81dc095b4766e3771a59bb71536e769e12c42.tar.gz nextpnr-ede81dc095b4766e3771a59bb71536e769e12c42.tar.bz2 nextpnr-ede81dc095b4766e3771a59bb71536e769e12c42.zip |
generic: Disable GUI as it isn't supported yet
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'gui')
-rw-r--r-- | gui/generic/mainwindow.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gui/generic/mainwindow.cc b/gui/generic/mainwindow.cc index 12912cc9..54d1f2c8 100644 --- a/gui/generic/mainwindow.cc +++ b/gui/generic/mainwindow.cc @@ -19,6 +19,9 @@ #include "mainwindow.h"
+#include <QMessageBox>
+#include <cstdlib>
+
static void initMainResource() { Q_INIT_RESOURCE(nextpnr); }
NEXTPNR_NAMESPACE_BEGIN
@@ -26,14 +29,8 @@ NEXTPNR_NAMESPACE_BEGIN MainWindow::MainWindow(std::unique_ptr<Context> context, ArchArgs args, QWidget *parent)
: BaseMainWindow(std::move(context), args, parent)
{
- initMainResource();
-
- std::string title = "nextpnr-generic - [EMPTY]";
- setWindowTitle(title.c_str());
-
- connect(this, &BaseMainWindow::contextChanged, this, &MainWindow::newContext);
-
- createMenu();
+ QMessageBox::critical(0, "Error - FIXME", "No GUI support for nextpnr-generic");
+ std::exit(1);
}
MainWindow::~MainWindow() {}
|