Duckstation/src/duckstation-qt/consolesettingswidget.h

30 lines
606 B
C
Raw Normal View History

2019-12-31 06:17:17 +00:00
#pragma once
#include <QtWidgets/QWidget>
#include "ui_consolesettingswidget.h"
2020-01-01 04:01:58 +00:00
class QtHostInterface;
class SettingsDialog;
2020-01-01 04:01:58 +00:00
2019-12-31 06:17:17 +00:00
class ConsoleSettingsWidget : public QWidget
{
Q_OBJECT
public:
explicit ConsoleSettingsWidget(QtHostInterface* host_interface, QWidget* parent, SettingsDialog* dialog);
2019-12-31 06:17:17 +00:00
~ConsoleSettingsWidget();
2020-09-29 14:29:47 +00:00
private Q_SLOTS:
void onEnableCPUClockSpeedControlChecked(int state);
void onCPUClockSpeedValueChanged(int value);
void updateCPUClockSpeedLabel();
2019-12-31 06:17:17 +00:00
private:
2020-09-29 14:29:47 +00:00
void calculateCPUClockValue();
2019-12-31 06:17:17 +00:00
Ui::ConsoleSettingsWidget m_ui;
2020-01-01 04:01:58 +00:00
QtHostInterface* m_host_interface;
2019-12-31 06:17:17 +00:00
};