fixup showMessage from both qt thread and external thread, while blocking

This commit is contained in:
Joakim L. Gilje
2021-11-29 17:25:31 +01:00
parent 238fb7ef62
commit 8385051f6a
2 changed files with 18 additions and 5 deletions

View File

@@ -15,6 +15,8 @@ class MainWindow : public QMainWindow
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
void showMessage(const QString& header, const QString& message);
signals:
void paint(const QImage& image);
void resizeContents(int w, int h);
@@ -25,8 +27,8 @@ signals:
void setFullscreen(bool state);
void setMouseCapture(bool state);
void showMessage(const QString& header, const QString& message);
void showMessageForNonQtThread(const QString& header, const QString& message);
private slots:
void on_actionFullscreen_triggered();
void on_actionSettings_triggered();