generic: Disable GUI as it isn't supported yet
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
48c4c1ed05
commit
ede81dc095
@ -19,6 +19,9 @@
|
|||||||
|
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
|
|
||||||
|
#include <QMessageBox>
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
static void initMainResource() { Q_INIT_RESOURCE(nextpnr); }
|
static void initMainResource() { Q_INIT_RESOURCE(nextpnr); }
|
||||||
|
|
||||||
NEXTPNR_NAMESPACE_BEGIN
|
NEXTPNR_NAMESPACE_BEGIN
|
||||||
@ -26,14 +29,8 @@ NEXTPNR_NAMESPACE_BEGIN
|
|||||||
MainWindow::MainWindow(std::unique_ptr<Context> context, ArchArgs args, QWidget *parent)
|
MainWindow::MainWindow(std::unique_ptr<Context> context, ArchArgs args, QWidget *parent)
|
||||||
: BaseMainWindow(std::move(context), args, parent)
|
: BaseMainWindow(std::move(context), args, parent)
|
||||||
{
|
{
|
||||||
initMainResource();
|
QMessageBox::critical(0, "Error - FIXME", "No GUI support for nextpnr-generic");
|
||||||
|
std::exit(1);
|
||||||
std::string title = "nextpnr-generic - [EMPTY]";
|
|
||||||
setWindowTitle(title.c_str());
|
|
||||||
|
|
||||||
connect(this, &BaseMainWindow::contextChanged, this, &MainWindow::newContext);
|
|
||||||
|
|
||||||
createMenu();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow() {}
|
MainWindow::~MainWindow() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user