mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-04-05 02:48:29 -04:00
Edit configure_graphics.h
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
// SPDX-FileCopyrightText: 2016 Citra Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2016 Citra Emulator Project
|
||||||
// SPDX-FileCopyrightText: Copyright 2025 citron Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2025 citron Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
@@ -46,6 +46,9 @@ class Builder;
|
|||||||
class ConfigureGraphics : public ConfigurationShared::Tab {
|
class ConfigureGraphics : public ConfigurationShared::Tab {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
// This property allows the main UI file to pass its stylesheet to this widget
|
||||||
|
Q_PROPERTY(QString templateStyleSheet READ GetTemplateStyleSheet WRITE SetTemplateStyleSheet NOTIFY TemplateStyleSheetChanged)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit ConfigureGraphics(
|
explicit ConfigureGraphics(
|
||||||
const Core::System& system_, std::vector<VkDeviceInfo::Record>& records,
|
const Core::System& system_, std::vector<VkDeviceInfo::Record>& records,
|
||||||
@@ -59,6 +62,13 @@ public:
|
|||||||
void ApplyConfiguration() override;
|
void ApplyConfiguration() override;
|
||||||
void SetConfiguration() override;
|
void SetConfiguration() override;
|
||||||
|
|
||||||
|
// These functions get and set the stylesheet property
|
||||||
|
QString GetTemplateStyleSheet() const;
|
||||||
|
void SetTemplateStyleSheet(const QString& sheet);
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void TemplateStyleSheetChanged();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void changeEvent(QEvent* event) override;
|
void changeEvent(QEvent* event) override;
|
||||||
void RetranslateUI();
|
void RetranslateUI();
|
||||||
@@ -115,4 +125,7 @@ private:
|
|||||||
QComboBox* aspect_ratio_combobox;
|
QComboBox* aspect_ratio_combobox;
|
||||||
QComboBox* resolution_combobox;
|
QComboBox* resolution_combobox;
|
||||||
QWidget* fsr_sharpness_widget;
|
QWidget* fsr_sharpness_widget;
|
||||||
|
|
||||||
|
// This variable will hold the raw stylesheet string
|
||||||
|
QString m_template_style_sheet;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user