From 8321a48af710c283f23ca976646f44bce60dc460 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Mon, 6 Apr 2020 22:26:55 +0200 Subject: [PATCH] Add missing QGuiApplication include --- src/settings/settingsdialog.cpp | 3 ++- src/settings/settingsdialog.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/settings/settingsdialog.cpp b/src/settings/settingsdialog.cpp index 2eac44e73..e2c1c85d7 100644 --- a/src/settings/settingsdialog.cpp +++ b/src/settings/settingsdialog.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -107,7 +108,7 @@ void SettingsItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem & } -SettingsDialog::SettingsDialog(Application *app, QMainWindow *mainwindow, QDialog *parent) +SettingsDialog::SettingsDialog(Application *app, QMainWindow *mainwindow, QWidget *parent) : QDialog(parent), mainwindow_(mainwindow), app_(app), diff --git a/src/settings/settingsdialog.h b/src/settings/settingsdialog.h index 2875da87a..2f4fdabe7 100644 --- a/src/settings/settingsdialog.h +++ b/src/settings/settingsdialog.h @@ -69,7 +69,7 @@ class SettingsDialog : public QDialog { Q_OBJECT public: - SettingsDialog(Application *app, QMainWindow *mainwindow, QDialog *parent = nullptr); + SettingsDialog(Application *app, QMainWindow *mainwindow, QWidget *parent = nullptr); ~SettingsDialog(); enum Page {