DolphinQt: Add the ability to show a tooltip for custom graphics controls

This commit is contained in:
iwubcode
2020-10-17 00:05:43 -05:00
parent af0161cafd
commit a9271aa167
9 changed files with 19 additions and 17 deletions

View File

@ -12,7 +12,7 @@
GraphicsRadioInt::GraphicsRadioInt(const QString& label, const Config::Info<int>& setting,
int value)
: QRadioButton(label), m_setting(setting), m_value(value)
: ToolTipRadioButton(label), m_setting(setting), m_value(value)
{
setChecked(Config::Get(m_setting) == m_value);
connect(this, &QRadioButton::toggled, this, &GraphicsRadioInt::Update);