summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/ConfigControls/ConfigInteger.cpp
diff options
context:
space:
mode:
authorTryTwo <taolas@gmail.com>2024-09-29 17:12:22 -0700
committerTryTwo <taolas@gmail.com>2024-12-10 13:42:30 -0700
commit9541bb6cf7f966cc9fefaaa4ef2bc4d45babed22 (patch)
tree012bceb365419a79c227d85d8f405b14f9e06336 /Source/Core/DolphinQt/Config/ConfigControls/ConfigInteger.cpp
parentac129d318b02f6878352cb1c93d2ebf3542ace1c (diff)
Add method to bold slider/spin labels when a user game ini setting is being used
Diffstat (limited to 'Source/Core/DolphinQt/Config/ConfigControls/ConfigInteger.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/ConfigControls/ConfigInteger.cpp10
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());
+ });
+}