diff options
| author | Léo Lam <leo@leolam.fr> | 2020-11-29 12:37:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-29 12:37:31 +0100 |
| commit | d043c5f81d9ad6afd039cd1b4b892275ad2c3bb5 (patch) | |
| tree | 333bdec1a48ab24b6202af729e42b83846a9a9a6 /Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp | |
| parent | 361bf25cf88026c384dc43ac8ee0cdd04b6e359c (diff) | |
| parent | cc837a59d64298d8a777ddec90b8ac26432886bd (diff) | |
Merge pull request #9153 from iwubcode/qt_custom_tooltip
Remove description box in graphics tabs and use custom tooltips instead
Diffstat (limited to 'Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/Graphics/GraphicsBool.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 <QSignalBlocker> @@ -10,10 +11,11 @@ #include "DolphinQt/Settings.h" +#include <QEvent> #include <QFont> GraphicsBool::GraphicsBool(const QString& label, const Config::Info<bool>& 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<bool>& 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); |
