Qt: Move post processing to its own setting category
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
#pragma once
|
||||
#include "frontend-common/postprocessing_shader.h"
|
||||
#include <QtWidgets/QDialog>
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
class PostProcessingShaderConfigWidget : public QDialog
|
||||
class QGridLayout;
|
||||
|
||||
class PostProcessingShaderConfigWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -10,17 +13,38 @@ public:
|
||||
PostProcessingShaderConfigWidget(QWidget* parent, FrontendCommon::PostProcessingShader* shader);
|
||||
~PostProcessingShaderConfigWidget();
|
||||
|
||||
QGridLayout* getLayout() { return m_layout; }
|
||||
|
||||
Q_SIGNALS:
|
||||
void configChanged();
|
||||
void resettingtoDefaults();
|
||||
|
||||
private Q_SLOTS:
|
||||
void onCloseClicked();
|
||||
void onResetToDefaultsClicked();
|
||||
|
||||
private:
|
||||
protected:
|
||||
void createUi();
|
||||
|
||||
FrontendCommon::PostProcessingShader* m_shader;
|
||||
QGridLayout* m_layout;
|
||||
};
|
||||
|
||||
class PostProcessingShaderConfigDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
PostProcessingShaderConfigDialog(QWidget* parent, FrontendCommon::PostProcessingShader* shader);
|
||||
~PostProcessingShaderConfigDialog();
|
||||
|
||||
Q_SIGNALS:
|
||||
void configChanged();
|
||||
|
||||
private Q_SLOTS:
|
||||
void onConfigChanged();
|
||||
void onCloseClicked();
|
||||
|
||||
private:
|
||||
PostProcessingShaderConfigWidget* m_widget;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user