Add method to bold slider/spin labels when a user game ini setting is being used

This commit is contained in:
TryTwo
2024-09-29 17:12:22 -07:00
parent ac129d318b
commit 9541bb6cf7
6 changed files with 57 additions and 4 deletions

View File

@ -3,6 +3,9 @@
#pragma once
#include <QLabel>
#include <QPointer>
#include "DolphinQt/Config/ConfigControls/ConfigControl.h"
#include "DolphinQt/Config/ToolTipControls/ToolTipSpinBox.h"
@ -28,3 +31,14 @@ protected:
private:
const Config::Info<int>& m_setting;
};
class ConfigIntegerLabel final : public QLabel
{
Q_OBJECT
public:
ConfigIntegerLabel(const QString& text, ConfigInteger* widget);
private:
QPointer<ConfigInteger> m_widget;
};