diff options
Diffstat (limited to 'Source/Core/DolphinQt/Config/ConfigControls/ConfigInteger.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/ConfigControls/ConfigInteger.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Config/ConfigControls/ConfigInteger.cpp b/Source/Core/DolphinQt/Config/ConfigControls/ConfigInteger.cpp index 8d724505e3..a81bfd7aed 100644 --- a/Source/Core/DolphinQt/Config/ConfigControls/ConfigInteger.cpp +++ b/Source/Core/DolphinQt/Config/ConfigControls/ConfigInteger.cpp @@ -29,3 +29,13 @@ void ConfigInteger::OnConfigChanged() { setValue(ReadValue(m_setting)); } + +ConfigIntegerLabel::ConfigIntegerLabel(const QString& text, ConfigInteger* widget) + : QLabel(text), m_widget(QPointer<ConfigInteger>(widget)) +{ + connect(&Settings::Instance(), &Settings::ConfigChanged, this, [this]() { + // Label shares font changes with ConfigInteger to mark game ini settings. + if (m_widget) + setFont(m_widget->font()); + }); +} |
