From e2a8e7da489de6d72c5d0ff9e1b74486c611d2e0 Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Thu, 24 Jul 2025 11:24:32 -0700 Subject: [PATCH] GameConfigWidget: Unify tooltips Use ToolTipWidget::SetDescription insead of QWidget::setTooltip to put the description in the BalloonTip with the title, instead of having the description be in a separate standard tooltip. --- .../DolphinQt/Config/GameConfigWidget.cpp | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Source/Core/DolphinQt/Config/GameConfigWidget.cpp b/Source/Core/DolphinQt/Config/GameConfigWidget.cpp index 1fa2a50292..efaae69c62 100644 --- a/Source/Core/DolphinQt/Config/GameConfigWidget.cpp +++ b/Source/Core/DolphinQt/Config/GameConfigWidget.cpp @@ -112,14 +112,16 @@ void GameConfigWidget::CreateWidgets() m_deterministic_dual_core = new ConfigStringChoice(choice, Config::MAIN_GPU_DETERMINISM_MODE, layer); - m_enable_mmu->setToolTip(tr( + m_enable_mmu->SetDescription(tr( "Enables the Memory Management Unit, needed for some games. (ON = Compatible, OFF = Fast)")); - m_enable_fprf->setToolTip(tr("Enables Floating Point Result Flag calculation, needed for a few " - "games. (ON = Compatible, OFF = Fast)")); - m_sync_gpu->setToolTip(tr("Synchronizes the GPU and CPU threads to help prevent random freezes " - "in Dual core mode. (ON = Compatible, OFF = Fast)")); - m_emulate_disc_speed->setToolTip( + m_enable_fprf->SetDescription( + tr("Enables Floating Point Result Flag calculation, needed for a few " + "games. (ON = Compatible, OFF = Fast)")); + m_sync_gpu->SetDescription( + tr("Synchronizes the GPU and CPU threads to help prevent random freezes " + "in Dual core mode. (ON = Compatible, OFF = Fast)")); + m_emulate_disc_speed->SetDescription( tr("Enable emulated disc speed. Disabling this can cause crashes " "and other problems in some games. " "(ON = Compatible, OFF = Unlocked)")); @@ -143,11 +145,11 @@ void GameConfigWidget::CreateWidgets() m_use_monoscopic_shadows = new ConfigBool(tr("Monoscopic Shadows"), Config::GFX_STEREO_EFB_MONO_DEPTH, layer); - m_depth_slider->setToolTip( + m_depth_slider->SetDescription( tr("This value is multiplied with the depth set in the graphics configuration.")); - m_convergence_spin->setToolTip( + m_convergence_spin->SetDescription( tr("This value is added to the convergence value set in the graphics configuration.")); - m_use_monoscopic_shadows->setToolTip( + m_use_monoscopic_shadows->SetDescription( tr("Use a single depth buffer for both eyes. Needed for a few games.")); stereoscopy_layout->addWidget(new ConfigSliderLabel(tr("Depth Percentage:"), m_depth_slider), 0,