2022-12-04 11:03:45 +00:00
|
|
|
// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
|
|
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
|
2020-09-10 14:18:12 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
|
|
|
|
#include "ui_displaysettingswidget.h"
|
|
|
|
|
2020-09-12 15:20:02 +00:00
|
|
|
class PostProcessingChainConfigWidget;
|
2020-09-10 14:18:12 +00:00
|
|
|
class SettingsDialog;
|
|
|
|
|
|
|
|
class DisplaySettingsWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-07-11 13:03:29 +00:00
|
|
|
DisplaySettingsWidget(SettingsDialog* dialog, QWidget* parent);
|
2020-09-10 14:18:12 +00:00
|
|
|
~DisplaySettingsWidget();
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
2020-11-01 14:38:54 +00:00
|
|
|
void populateGPUAdaptersAndResolutions();
|
2020-09-10 14:18:12 +00:00
|
|
|
void onGPUAdapterIndexChanged();
|
2020-11-01 14:38:54 +00:00
|
|
|
void onGPUFullscreenModeIndexChanged();
|
2021-04-28 16:42:08 +00:00
|
|
|
void onAspectRatioChanged();
|
2020-09-10 14:18:12 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void setupAdditionalUi();
|
|
|
|
|
|
|
|
Ui::DisplaySettingsWidget m_ui;
|
|
|
|
|
2022-07-11 13:03:29 +00:00
|
|
|
SettingsDialog* m_dialog;
|
2020-09-10 14:18:12 +00:00
|
|
|
};
|