Merge pull request #13232 from TryTwo/PR_hotfix

Qt crash hotfix
This commit is contained in:
JMC47 2024-12-23 18:04:51 -05:00 committed by GitHub
commit f9ce2b9d76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 12 additions and 36 deletions

View File

@ -6,11 +6,7 @@
#include "DolphinQt/Config/ConfigControls/ConfigControl.h"
#include "DolphinQt/Config/ToolTipControls/ToolTipCheckBox.h"
namespace Config
{
template <typename T>
class Info;
}
#include "Common/Config/ConfigInfo.h"
class ConfigBool final : public ConfigControl<ToolTipCheckBox>
{
@ -26,6 +22,6 @@ protected:
private:
void Update();
const Config::Info<bool>& m_setting;
const Config::Info<bool> m_setting;
bool m_reverse;
};

View File

@ -10,11 +10,7 @@
#include "DolphinQt/Config/ConfigControls/ConfigControl.h"
#include "DolphinQt/Config/ToolTipControls/ToolTipComboBox.h"
namespace Config
{
template <typename T>
class Info;
}
#include "Common/Config/ConfigInfo.h"
class ConfigChoice final : public ConfigControl<ToolTipComboBox>
{
@ -48,7 +44,7 @@ protected:
private:
void Update(int index);
const Config::Info<std::string>& m_setting;
const Config::Info<std::string> m_setting;
bool m_text_is_data = false;
};

View File

@ -6,11 +6,7 @@
#include "DolphinQt/Config/ConfigControls/ConfigControl.h"
#include "DolphinQt/Config/ToolTipControls/ToolTipSlider.h"
namespace Config
{
template <typename T>
class Info;
}
#include "Common/Config/ConfigInfo.h"
// Automatically converts an int slider into a float one.
// Do not read the int values or ranges directly from it.
@ -31,5 +27,5 @@ protected:
private:
float m_minimum;
float m_step;
const Config::Info<float>& m_setting;
const Config::Info<float> m_setting;
};

View File

@ -9,11 +9,7 @@
#include "DolphinQt/Config/ConfigControls/ConfigControl.h"
#include "DolphinQt/Config/ToolTipControls/ToolTipSpinBox.h"
namespace Config
{
template <typename T>
class Info;
}
#include "Common/Config/ConfigInfo.h"
class ConfigInteger final : public ConfigControl<ToolTipSpinBox>
{
@ -29,7 +25,7 @@ protected:
void OnConfigChanged() override;
private:
const Config::Info<int>& m_setting;
const Config::Info<int> m_setting;
};
class ConfigIntegerLabel final : public QLabel

View File

@ -6,11 +6,7 @@
#include "DolphinQt/Config/ConfigControls/ConfigControl.h"
#include "DolphinQt/Config/ToolTipControls/ToolTipRadioButton.h"
namespace Config
{
template <typename T>
class Info;
}
#include "Common/Config/ConfigInfo.h"
class ConfigRadioInt final : public ConfigControl<ToolTipRadioButton>
{
@ -31,6 +27,6 @@ protected:
private:
void Update();
const Config::Info<int>& m_setting;
const Config::Info<int> m_setting;
int m_value;
};

View File

@ -9,11 +9,7 @@
#include "DolphinQt/Config/ConfigControls/ConfigControl.h"
#include "DolphinQt/Config/ToolTipControls/ToolTipSlider.h"
namespace Config
{
template <typename T>
class Info;
}
#include "Common/Config/ConfigInfo.h"
class ConfigSlider final : public ConfigControl<ToolTipSlider>
{
@ -29,7 +25,7 @@ protected:
void OnConfigChanged() override;
private:
const Config::Info<int>& m_setting;
const Config::Info<int> m_setting;
};
class ConfigSliderLabel final : public QLabel