pcsx2/pcsx2-qt/Settings/EmulationSettingsWidget.h

33 lines
754 B
C
Raw Normal View History

// SPDX-FileCopyrightText: 2002-2023 PCSX2 Dev Team
// SPDX-License-Identifier: LGPL-3.0+
2021-12-13 12:12:54 +00:00
#pragma once
#include <QtWidgets/QWidget>
#include "ui_EmulationSettingsWidget.h"
class SettingsWindow;
2021-12-13 12:12:54 +00:00
class EmulationSettingsWidget : public QWidget
{
Q_OBJECT
public:
EmulationSettingsWidget(SettingsWindow* dialog, QWidget* parent);
2021-12-13 12:12:54 +00:00
~EmulationSettingsWidget();
private Q_SLOTS:
2022-02-15 14:29:18 +00:00
void onOptimalFramePacingChanged();
2021-12-13 12:12:54 +00:00
private:
2022-02-15 14:29:18 +00:00
void initializeSpeedCombo(QComboBox* cb, const char* section, const char* key, float default_value);
void handleSpeedComboChange(QComboBox* cb, const char* section, const char* key);
2021-12-13 12:12:54 +00:00
void updateOptimalFramePacing();
void updateUseVSyncForTimingEnabled();
2021-12-13 12:12:54 +00:00
SettingsWindow* m_dialog;
2022-02-15 14:29:18 +00:00
2021-12-13 12:12:54 +00:00
Ui::EmulationSettingsWidget m_ui;
};