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/basewindow.h | |
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/basewindow.h')
-rw-r--r-- | gui/basewindow.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/basewindow.h b/gui/basewindow.h index ef3dcb95..d2d0505d 100644 --- a/gui/basewindow.h +++ b/gui/basewindow.h @@ -40,9 +40,9 @@ class BaseMainWindow : public QMainWindow Q_OBJECT
public:
- explicit BaseMainWindow(QWidget *parent = 0);
+ explicit BaseMainWindow(std::unique_ptr<Context> context, QWidget *parent = 0);
virtual ~BaseMainWindow();
- Context *getContext() { return ctx; }
+ Context *getContext() { return ctx.get(); }
protected:
void createMenusAndBars();
@@ -59,7 +59,7 @@ class BaseMainWindow : public QMainWindow void updateTreeView();
protected:
- Context *ctx;
+ std::unique_ptr<Context> ctx;
QTabWidget *tabWidget;
QTabWidget *centralTabWidget;
InfoTab *info;
|