From 5635a0bdef8e1bf928de38bc875621e7e152630b Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sun, 13 Aug 2023 22:46:46 +0200 Subject: [PATCH] DolphinQt/EnhancementsWidget: Use custom tooltip for Color Correction button. --- .../DolphinQt/Config/Graphics/EnhancementsWidget.cpp | 10 ++++++---- .../DolphinQt/Config/Graphics/EnhancementsWidget.h | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp index 09e8ec11e0..47e22ade53 100644 --- a/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp @@ -21,6 +21,7 @@ #include "DolphinQt/Config/Graphics/ColorCorrectionConfigWindow.h" #include "DolphinQt/Config/Graphics/GraphicsWindow.h" #include "DolphinQt/Config/Graphics/PostProcessingConfigWindow.h" +#include "DolphinQt/Config/ToolTipControls/ToolTipPushButton.h" #include "DolphinQt/QtUtils/NonDefaultQPushButton.h" #include "DolphinQt/QtUtils/SetWindowDecorations.h" #include "DolphinQt/Settings.h" @@ -104,7 +105,7 @@ void EnhancementsWidget::CreateWidgets() m_texture_filtering_combo->addItem(tr("Force Linear and 16x Anisotropic"), TEXTURE_FILTERING_FORCE_LINEAR_ANISO_16X); - m_configure_color_correction = new NonDefaultQPushButton(tr("Configure")); + m_configure_color_correction = new ToolTipPushButton(tr("Configure")); m_pp_effect = new ToolTipComboBox(); m_configure_pp_effect = new NonDefaultQPushButton(tr("Configure")); @@ -455,8 +456,8 @@ void EnhancementsWidget::AddDescriptions() "of the game's textures and might cause issues in a small number of " "games.

If unsure, select 'Default'."); static const char TR_COLOR_CORRECTION_DESCRIPTION[] = - QT_TR_NOOP("A group of features to make the colors more accurate," - " matching the color space Wii and GC games were meant for."); + QT_TR_NOOP("A group of features to make the colors more accurate, matching the color space " + "Wii and GC games were meant for."); static const char TR_POSTPROCESSING_DESCRIPTION[] = QT_TR_NOOP("Applies a post-processing effect after rendering a frame.

If unsure, select (off)."); @@ -536,7 +537,8 @@ void EnhancementsWidget::AddDescriptions() m_texture_filtering_combo->SetTitle(tr("Texture Filtering")); m_texture_filtering_combo->SetDescription(tr(TR_FORCE_TEXTURE_FILTERING_DESCRIPTION)); - m_configure_color_correction->setToolTip(tr(TR_COLOR_CORRECTION_DESCRIPTION)); + m_configure_color_correction->SetTitle(tr("Color Correction")); + m_configure_color_correction->SetDescription(tr(TR_COLOR_CORRECTION_DESCRIPTION)); m_pp_effect->SetTitle(tr("Post-Processing Effect")); m_pp_effect->SetDescription(tr(TR_POSTPROCESSING_DESCRIPTION)); diff --git a/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.h b/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.h index 56d8741b9c..4d2cdcd5b5 100644 --- a/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.h +++ b/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.h @@ -16,6 +16,7 @@ class QComboBox; class QPushButton; class QSlider; class ToolTipComboBox; +class ToolTipPushButton; class EnhancementsWidget final : public QWidget { @@ -39,7 +40,7 @@ private: ToolTipComboBox* m_aa_combo; ToolTipComboBox* m_texture_filtering_combo; ToolTipComboBox* m_pp_effect; - QPushButton* m_configure_color_correction; + ToolTipPushButton* m_configure_color_correction; QPushButton* m_configure_pp_effect; ConfigBool* m_scaled_efb_copy; ConfigBool* m_per_pixel_lighting;