diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-13 09:14:48 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-13 09:14:48 +0200 |
commit | 8e54ac15421be441ece2a85ff0d61e850a99b2e9 (patch) | |
tree | eb21944633c881ff6f3e411f4ce9dfc67f9e47c4 /gui/ecp5/mainwindow.cc | |
parent | 499951cb65ff31fe15aa360a6b44371b13815d66 (diff) | |
download | nextpnr-8e54ac15421be441ece2a85ff0d61e850a99b2e9.tar.gz nextpnr-8e54ac15421be441ece2a85ff0d61e850a99b2e9.tar.bz2 nextpnr-8e54ac15421be441ece2a85ff0d61e850a99b2e9.zip |
Use command line parameters settings for GUI as well.
Diffstat (limited to 'gui/ecp5/mainwindow.cc')
-rw-r--r-- | gui/ecp5/mainwindow.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/ecp5/mainwindow.cc b/gui/ecp5/mainwindow.cc index 6cc3dd15..1168a55c 100644 --- a/gui/ecp5/mainwindow.cc +++ b/gui/ecp5/mainwindow.cc @@ -23,7 +23,7 @@ static void initMainResource() { Q_INIT_RESOURCE(nextpnr); } NEXTPNR_NAMESPACE_BEGIN
-MainWindow::MainWindow(QWidget *parent) : BaseMainWindow(parent)
+MainWindow::MainWindow(std::unique_ptr<Context> context, QWidget *parent) : BaseMainWindow(std::move(context), parent)
{
initMainResource();
@@ -31,6 +31,7 @@ MainWindow::MainWindow(QWidget *parent) : BaseMainWindow(parent) setWindowTitle(title.c_str());
createMenu();
+ Q_EMIT contextChanged(ctx.get());
}
MainWindow::~MainWindow() {}
|