2020-01-03 07:51:58 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
|
|
|
|
#include "ui_gpusettingswidget.h"
|
|
|
|
|
|
|
|
class QtHostInterface;
|
2020-04-30 15:00:05 +00:00
|
|
|
class SettingsDialog;
|
2020-01-03 07:51:58 +00:00
|
|
|
|
|
|
|
class GPUSettingsWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-04-30 15:00:05 +00:00
|
|
|
GPUSettingsWidget(QtHostInterface* host_interface, QWidget* parent, SettingsDialog* dialog);
|
2020-01-03 07:51:58 +00:00
|
|
|
~GPUSettingsWidget();
|
|
|
|
|
2020-02-29 14:05:31 +00:00
|
|
|
private Q_SLOTS:
|
|
|
|
void updateScaledDitheringEnabled();
|
2020-06-19 17:34:00 +00:00
|
|
|
void populateGPUAdapters();
|
2020-06-22 05:57:43 +00:00
|
|
|
void onGPUAdapterIndexChanged();
|
2020-02-29 14:05:31 +00:00
|
|
|
|
2020-01-03 07:51:58 +00:00
|
|
|
private:
|
|
|
|
void setupAdditionalUi();
|
|
|
|
|
|
|
|
Ui::GPUSettingsWidget m_ui;
|
|
|
|
|
|
|
|
QtHostInterface* m_host_interface;
|
|
|
|
};
|