From a9271aa167f0fca3780bdad32b682cb964db116f Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 17 Oct 2020 00:05:43 -0500 Subject: DolphinQt: Add the ability to show a tooltip for custom graphics controls --- Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp') diff --git a/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp b/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp index 4d5eaf6973..e05f956463 100644 --- a/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #include "DolphinQt/Config/Graphics/GraphicsBool.h" +#include "DolphinQt/Config/Graphics/BalloonTip.h" #include @@ -10,10 +11,11 @@ #include "DolphinQt/Settings.h" +#include #include GraphicsBool::GraphicsBool(const QString& label, const Config::Info& setting, bool reverse) - : QCheckBox(label), m_setting(setting), m_reverse(reverse) + : ToolTipCheckBox(label), m_setting(setting), m_reverse(reverse) { connect(this, &QCheckBox::toggled, this, &GraphicsBool::Update); setChecked(Config::Get(m_setting) ^ reverse); @@ -35,7 +37,7 @@ void GraphicsBool::Update() GraphicsBoolEx::GraphicsBoolEx(const QString& label, const Config::Info& setting, bool reverse) - : QRadioButton(label), m_setting(setting), m_reverse(reverse) + : ToolTipRadioButton(label), m_setting(setting), m_reverse(reverse) { connect(this, &QCheckBox::toggled, this, &GraphicsBoolEx::Update); setChecked(Config::Get(m_setting) ^ reverse); -- cgit v1.2.3