mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
commit
9f91fb6447
47 changed files with 239 additions and 185 deletions
|
@ -75,6 +75,9 @@ void MappingDouble::Update()
|
|||
MappingBool::MappingBool(MappingWidget* parent, ControllerEmu::NumericSetting<bool>* setting)
|
||||
: QCheckBox(parent), m_setting(*setting)
|
||||
{
|
||||
if (const auto ui_description = m_setting.GetUIDescription())
|
||||
setToolTip(tr(ui_description));
|
||||
|
||||
connect(this, &QCheckBox::stateChanged, this, [this, parent](int value) {
|
||||
m_setting.SetValue(value != 0);
|
||||
ConfigChanged();
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "DolphinQt/Config/Graphics/BalloonTip.h"
|
||||
|
||||
constexpr int TOOLTIP_DELAY = 300;
|
||||
|
||||
template <class Derived>
|
||||
class ToolTipWidget : public Derived
|
||||
{
|
||||
|
@ -25,7 +27,7 @@ private:
|
|||
{
|
||||
if (m_timer_id)
|
||||
return;
|
||||
m_timer_id = this->startTimer(300);
|
||||
m_timer_id = this->startTimer(TOOLTIP_DELAY);
|
||||
}
|
||||
|
||||
void leaveEvent(QEvent* event) override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue