Skip to content

Commit

Permalink
Update Scene Dialog #325
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Nov 25, 2024
1 parent eb1263f commit 1dbcffa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/ui/dialogs/scenesettingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
20 changes: 10 additions & 10 deletions src/ui/dialogs/scenesettingsdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

#include "ui_global.h"

#include <QDialog>
#include <QVBoxLayout>
#include <QPushButton>
#include <QSpinBox>
Expand All @@ -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;
Expand Down

0 comments on commit 1dbcffa

Please sign in to comment.