Skip to content

Commit

Permalink
Merge pull request #13232 from TryTwo/PR_hotfix
Browse files Browse the repository at this point in the history
Qt crash hotfix
  • Loading branch information
JMC47 authored Dec 23, 2024
2 parents c528a70 + 27ac5fa commit f9ce2b9
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 36 deletions.
8 changes: 2 additions & 6 deletions Source/Core/DolphinQt/Config/ConfigControls/ConfigBool.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
{
Expand All @@ -26,6 +22,6 @@ class ConfigBool final : public ConfigControl<ToolTipCheckBox>
private:
void Update();

const Config::Info<bool>& m_setting;
const Config::Info<bool> m_setting;
bool m_reverse;
};
8 changes: 2 additions & 6 deletions Source/Core/DolphinQt/Config/ConfigControls/ConfigChoice.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
{
Expand Down Expand Up @@ -48,7 +44,7 @@ class ConfigStringChoice final : public ConfigControl<ToolTipComboBox>
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;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -31,5 +27,5 @@ class ConfigFloatSlider final : public ConfigControl<ToolTipSlider>
private:
float m_minimum;
float m_step;
const Config::Info<float>& m_setting;
const Config::Info<float> m_setting;
};
8 changes: 2 additions & 6 deletions Source/Core/DolphinQt/Config/ConfigControls/ConfigInteger.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
{
Expand All @@ -29,7 +25,7 @@ class ConfigInteger final : public ConfigControl<ToolTipSpinBox>
void OnConfigChanged() override;

private:
const Config::Info<int>& m_setting;
const Config::Info<int> m_setting;
};

class ConfigIntegerLabel final : public QLabel
Expand Down
8 changes: 2 additions & 6 deletions Source/Core/DolphinQt/Config/ConfigControls/ConfigRadio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
{
Expand All @@ -31,6 +27,6 @@ class ConfigRadioInt final : public ConfigControl<ToolTipRadioButton>
private:
void Update();

const Config::Info<int>& m_setting;
const Config::Info<int> m_setting;
int m_value;
};
8 changes: 2 additions & 6 deletions Source/Core/DolphinQt/Config/ConfigControls/ConfigSlider.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
{
Expand All @@ -29,7 +25,7 @@ class ConfigSlider final : public ConfigControl<ToolTipSlider>
void OnConfigChanged() override;

private:
const Config::Info<int>& m_setting;
const Config::Info<int> m_setting;
};

class ConfigSliderLabel final : public QLabel
Expand Down

0 comments on commit f9ce2b9

Please sign in to comment.