Add a pointer to the device-controller-plugin. The main window will always be

owned by the GUI thread, and the GUI thread is loading the plugin. Hence the
worker-thread does not block itself when inside a QT slot.
This commit is contained in:
2023-09-06 09:07:45 +02:00
parent c065b57f0c
commit 9531a08b4a
2 changed files with 8 additions and 3 deletions

View File

@@ -3,21 +3,22 @@
#include "worker.h"
#include "utils.h"
#include "progress_event.h"
#include "plugins/interfaces.h"
#include <QDateTime>
#include <QMessageBox>
#include <QDebug>
#include <QScrollBar>
MainWindow::MainWindow(Worker *worker, QWidget *parent)
MainWindow::MainWindow(hwinf *hw, Worker *worker, QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
, m_hw(hw)
, m_worker(worker)
, m_width(70)
, m_progressRunning(false)
, m_progressValue(0) {
this->setStatusBar(new QStatusBar(this));
QFont f;
f.setStyleHint(QFont::Monospace);