From 5512b68020268bbc57e4a44f18ddff021e6ba377 Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Thu, 25 Apr 2024 23:08:51 -0700 Subject: [PATCH] GeneralPane: Add BalloonTip to enable analytics checkbox --- Source/Core/DolphinQt/Settings/GeneralPane.cpp | 10 +++++++++- Source/Core/DolphinQt/Settings/GeneralPane.h | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/Settings/GeneralPane.cpp b/Source/Core/DolphinQt/Settings/GeneralPane.cpp index a80c2c176c..8b2962fe6e 100644 --- a/Source/Core/DolphinQt/Settings/GeneralPane.cpp +++ b/Source/Core/DolphinQt/Settings/GeneralPane.cpp @@ -228,7 +228,7 @@ void GeneralPane::CreateAnalytics() analytics_group->setLayout(analytics_group_layout); m_main_layout->addWidget(analytics_group); - m_checkbox_enable_analytics = new QCheckBox(tr("Enable Usage Statistics Reporting")); + m_checkbox_enable_analytics = new ToolTipCheckBox(tr("Enable Usage Statistics Reporting")); m_button_generate_new_identity = new NonDefaultQPushButton(tr("Generate a New Statistics Identity")); analytics_group_layout->addWidget(m_checkbox_enable_analytics); @@ -426,6 +426,12 @@ void GeneralPane::AddDescriptions() static constexpr char TR_FALLBACK_REGION_DESCRIPTION[] = QT_TR_NOOP("Sets the region used for titles whose region cannot be determined automatically." "

This setting cannot be changed while emulation is active."); + static constexpr char TR_ENABLE_ANALYTICS_DESCRIPTION[] = QT_TR_NOOP( + "If selected, Dolphin can collect data on its performance, feature usage, emulated games, " + "and configuration, as well as data on your system's hardware and operating system." + "

No private data is ever collected. This data helps us understand how people and " + "emulated games use Dolphin and prioritize our efforts. It also helps us identify rare " + "configurations that are causing bugs, performance and stability issues."); m_checkbox_dualcore->SetDescription(tr(TR_DUALCORE_DESCRIPTION)); @@ -450,4 +456,6 @@ void GeneralPane::AddDescriptions() m_combobox_fallback_region->SetTitle(tr("Fallback Region")); m_combobox_fallback_region->SetDescription(tr(TR_FALLBACK_REGION_DESCRIPTION)); + + m_checkbox_enable_analytics->SetDescription(tr(TR_ENABLE_ANALYTICS_DESCRIPTION)); } diff --git a/Source/Core/DolphinQt/Settings/GeneralPane.h b/Source/Core/DolphinQt/Settings/GeneralPane.h index ba60cddf7e..8b968f9c4a 100644 --- a/Source/Core/DolphinQt/Settings/GeneralPane.h +++ b/Source/Core/DolphinQt/Settings/GeneralPane.h @@ -58,6 +58,6 @@ private: void GenerateNewIdentity(); QPushButton* m_button_generate_new_identity; - QCheckBox* m_checkbox_enable_analytics; + ToolTipCheckBox* m_checkbox_enable_analytics; #endif };