aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Jenssen <[email protected]>2025-04-03 20:57:15 +0200
committerTim Jenssen <[email protected]>2025-04-03 20:57:15 +0200
commitdffbef356b248286017b85ed84f087adf4881333 (patch)
tree3ea1a95f3632122b73366ff15dff5461ab4eb159 /src
parentf37465eeb49fbfe17a1aefc30c0e0ff91c693966 (diff)
parent2b9bd494b2dc60067d321273f9e911eb56c8ceb9 (diff)
Merge remote-tracking branch 'origin/qds/dev'HEADv17.0.0-beta2v17.0.0-beta1master17.0
Diffstat (limited to 'src')
-rw-r--r--src/usagestatisticplugin.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/usagestatisticplugin.cpp b/src/usagestatisticplugin.cpp
index 78f4fbf..b5fd66c 100644
--- a/src/usagestatisticplugin.cpp
+++ b/src/usagestatisticplugin.cpp
@@ -175,9 +175,12 @@ public:
Settings &s = theSettings();
using namespace Layouting;
- auto moreInformationLabel = new QLabel("<a "
- "href=\"qthelp://org.qt-project.qtcreator/doc/"
- "creator-how-to-collect-usage-statistics.html\">"
+ const QString helpUrl = ICore::isQtDesignStudio() ?
+ QString("qtdesignstudio/doc/studio-collecting-usage-statistics.html\">")
+ : QString("qtcreator/doc/creator-how-to-collect-usage-statistics.html\">");
+
+ auto moreInformationLabel = new QLabel("<a href=\"qthelp://org.qt-project."
+ + helpUrl
+ UsageStatisticPlugin::tr("More information")
+ "</a>");
connect(moreInformationLabel, &QLabel::linkActivated, [this](const QString &link) {
@@ -247,12 +250,6 @@ UsageStatisticPlugin::~UsageStatisticPlugin() = default;
void UsageStatisticPlugin::initialize()
{
setupSettingsPage();
-
- if (Core::ICore::isQtDesignStudio()) {
- Utils::QtcSettings *settings = Core::ICore::settings();
- settings->setValue("lastSessionCrashed", true); // value will persist unless cleared in aboutToShutdown()
- }
-
theSettings().readSettings();
}
@@ -274,9 +271,6 @@ ExtensionSystem::IPlugin::ShutdownFlag UsageStatisticPlugin::aboutToShutdown()
{
theSettings().writeSettings();
- Utils::QtcSettings *settings = Core::ICore::settings();
- settings->remove("lastSessionCrashed");
-
return SynchronousShutdown;
}