diff --git a/src/ui/dialogs/scenesettingsdialog.cpp b/src/ui/dialogs/scenesettingsdialog.cpp index df9519963..dbda03881 100644 --- a/src/ui/dialogs/scenesettingsdialog.cpp +++ b/src/ui/dialogs/scenesettingsdialog.cpp @@ -63,7 +63,7 @@ SceneSettingsDialog::SceneSettingsDialog(const QString &name, const qreal fps, ColorAnimator * const bg, QWidget * const parent) - : QDialog(parent) + : Friction::Ui::Dialog(parent) { const auto presetsFpsSettings = AppSupport::getFpsPresetStatus(); const auto presetsResolutionSettings = AppSupport::getResolutionPresetStatus(); diff --git a/src/ui/dialogs/scenesettingsdialog.h b/src/ui/dialogs/scenesettingsdialog.h index 6deadcf8c..64977f356 100644 --- a/src/ui/dialogs/scenesettingsdialog.h +++ b/src/ui/dialogs/scenesettingsdialog.h @@ -28,7 +28,6 @@ #include "ui_global.h" -#include #include #include #include @@ -39,26 +38,27 @@ #include "smartPointers/ememory.h" #include "framerange.h" +#include "dialog.h" class Document; class Canvas; class ColorAnimator; class ColorAnimatorButton; -class UI_EXPORT SceneSettingsDialog : public QDialog +class UI_EXPORT SceneSettingsDialog : public Friction::Ui::Dialog { public: SceneSettingsDialog(Canvas * const canvas, - QWidget * const parent = nullptr); + QWidget * const parent = nullptr); SceneSettingsDialog(const QString &defName, - QWidget * const parent = nullptr); + QWidget * const parent = nullptr); SceneSettingsDialog(const QString &name, - const int width, - const int height, - const FrameRange &range, - const qreal fps, - ColorAnimator * const bg, - QWidget * const parent = nullptr); + const int width, + const int height, + const FrameRange &range, + const qreal fps, + ColorAnimator * const bg, + QWidget * const parent = nullptr); int getCanvasWidth() const; int getCanvasHeight() const;