diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-08-18 00:16:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-18 00:16:47 +0200 |
| commit | 42e893d6be603fb10cd7d8ac899e39f0453e2933 (patch) | |
| tree | 740164fccad301efb3f0c977ebee46dfc7e06724 /Source | |
| parent | fc7ef666698af05df740da3f990cc9286f0635a8 (diff) | |
| parent | 5635a0bdef8e1bf928de38bc875621e7e152630b (diff) | |
Merge pull request #12114 from AdmiralCurtiss/color-correction-button
DolphinQt/EnhancementsWidget: Use custom tooltip for Color Correction button.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp | 10 | ||||
| -rw-r--r-- | Source/Core/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.<br><br><dolphin_emphasis>If unsure, select 'Default'.</dolphin_emphasis>"); 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.<br><br " "/><dolphin_emphasis>If unsure, select (off).</dolphin_emphasis>"); @@ -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; |
