diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-26 15:47:22 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-26 15:47:43 +0200 |
commit | 0bd73c19778c9bdbc8e6d85c120715e239a9bc0d (patch) | |
tree | c269c560c2dc284a4721bea2722a73bb522e5e3e /gui/ice40/worker.h | |
parent | 6f12f2b7e8c58a0b14c6f1f3df2112b8860a6e4f (diff) | |
download | nextpnr-0bd73c19778c9bdbc8e6d85c120715e239a9bc0d.tar.gz nextpnr-0bd73c19778c9bdbc8e6d85c120715e239a9bc0d.tar.bz2 nextpnr-0bd73c19778c9bdbc8e6d85c120715e239a9bc0d.zip |
Make GUI use recreated context
Diffstat (limited to 'gui/ice40/worker.h')
-rw-r--r-- | gui/ice40/worker.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/ice40/worker.h b/gui/ice40/worker.h index 18f4b2c2..f4369535 100644 --- a/gui/ice40/worker.h +++ b/gui/ice40/worker.h @@ -32,8 +32,9 @@ class Worker : public QObject { Q_OBJECT public: - Worker(Context *ctx, TaskManager *parent); + explicit Worker(TaskManager *parent); public Q_SLOTS: + void newContext(Context *); void loadfile(const std::string &); void loadpcf(const std::string &); void saveasc(const std::string &); @@ -64,7 +65,7 @@ class TaskManager : public QObject QThread workerThread; public: - TaskManager(Context *ctx); + explicit TaskManager(); ~TaskManager(); bool shouldTerminate(); void clearTerminate(); @@ -75,6 +76,7 @@ class TaskManager : public QObject void pause_thread(); void continue_thread(); Q_SIGNALS: + void contextChanged(Context *ctx); void terminate(); void loadfile(const std::string &); void loadpcf(const std::string &); |