mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
Qt: Define Q_OBJECT for TextureReplacementSettingsDialog
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// SPDX-FileCopyrightText: 2019-2025 Connor McLaughlin <stenzek@gmail.com>
|
||||
// SPDX-FileCopyrightText: 2019-2026 Connor McLaughlin <stenzek@gmail.com>
|
||||
// SPDX-License-Identifier: CC-BY-NC-ND-4.0
|
||||
|
||||
#include "graphicssettingswidget.h"
|
||||
@@ -7,7 +7,6 @@
|
||||
#include "qtwindowinfo.h"
|
||||
#include "settingswindow.h"
|
||||
#include "settingwidgetbinder.h"
|
||||
#include "ui_texturereplacementsettingsdialog.h"
|
||||
|
||||
#include "core/core.h"
|
||||
#include "core/fullscreenui_widgets.h"
|
||||
@@ -1427,18 +1426,6 @@ void GraphicsSettingsWidget::onGPUThreadChanged()
|
||||
m_ui.maxQueuedFramesLabel->setEnabled(enabled);
|
||||
}
|
||||
|
||||
namespace {
|
||||
class TextureReplacementSettingsDialog final : public QDialog
|
||||
{
|
||||
public:
|
||||
TextureReplacementSettingsDialog(SettingsWindow* settings_window, QWidget* parent);
|
||||
|
||||
private:
|
||||
void onExportClicked();
|
||||
|
||||
Ui::TextureReplacementSettingsDialog m_ui;
|
||||
};
|
||||
|
||||
TextureReplacementSettingsDialog::TextureReplacementSettingsDialog(SettingsWindow* settings_window, QWidget* parent)
|
||||
: QDialog(parent)
|
||||
{
|
||||
@@ -1545,7 +1532,6 @@ void TextureReplacementSettingsDialog::onExportClicked()
|
||||
});
|
||||
idlg->open();
|
||||
}
|
||||
} // namespace
|
||||
|
||||
void GraphicsSettingsWidget::onTextureReplacementOptionsClicked()
|
||||
{
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
// SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <stenzek@gmail.com>
|
||||
// SPDX-FileCopyrightText: 2019-2026 Connor McLaughlin <stenzek@gmail.com>
|
||||
// SPDX-License-Identifier: CC-BY-NC-ND-4.0
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
#include "ui_graphicssettingswidget.h"
|
||||
|
||||
#include "core/types.h"
|
||||
|
||||
#include "util/gpu_device.h"
|
||||
|
||||
#include <QtWidgets/QDialog>
|
||||
#include <QtWidgets/QWidget>
|
||||
|
||||
#include "ui_graphicssettingswidget.h"
|
||||
#include "ui_texturereplacementsettingsdialog.h"
|
||||
|
||||
enum class GPURenderer : u8;
|
||||
|
||||
class SettingsInterface;
|
||||
@@ -85,3 +87,16 @@ private:
|
||||
GPUDevice::AdapterInfoList m_adapters;
|
||||
RenderAPI m_adapters_render_api = RenderAPI::None;
|
||||
};
|
||||
|
||||
class TextureReplacementSettingsDialog final : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TextureReplacementSettingsDialog(SettingsWindow* settings_window, QWidget* parent);
|
||||
|
||||
private:
|
||||
void onExportClicked();
|
||||
|
||||
Ui::TextureReplacementSettingsDialog m_ui;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user