citra/src/citra_qt/configuration/configure_enhancements.h
Vitor K a26b466ac8
Use unique_ptr on all ui objects from .ui files (#5511)
* Forward declare ui and use unique_ptr

* ConfigureEnhancements: use unique_ptr for ui

* Use make_unique instead of new where applicable

* Move some of the ui includes that already used unique_ptr

* main.cpp: also make use of make_unique on Config

* Address review comments
2020-10-01 09:23:01 +08:00

35 lines
728 B
C++

// Copyright 2019 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <memory>
#include <QWidget>
namespace Settings {
enum class StereoRenderOption;
}
namespace Ui {
class ConfigureEnhancements;
}
class ConfigureEnhancements : public QWidget {
Q_OBJECT
public:
explicit ConfigureEnhancements(QWidget* parent = nullptr);
~ConfigureEnhancements();
void ApplyConfiguration();
void RetranslateUI();
void SetConfiguration();
private:
void updateShaders(Settings::StereoRenderOption stereo_option);
void updateTextureFilter(int index);
std::unique_ptr<Ui::ConfigureEnhancements> ui;
QColor bg_color;
};