Crashpad: Show where minidumps are saved in tooltip in settings

That is interesting information for the user.

Task-number: QTCREATORBUG-31862
Change-Id: I07aaafd45ea3a039d559063e069da51b920cbec3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Eike Ziller
2024-10-28 11:53:15 +01:00
parent 4d66293233
commit a39abf3298

View File

@@ -14,6 +14,7 @@
#include "vcsmanager.h"
#include <utils/algorithm.h>
#include <utils/appinfo.h>
#include <utils/checkablemessagebox.h>
#include <utils/elidinglabel.h>
#include <utils/environment.h>
@@ -234,10 +235,13 @@ public:
Row{s.maxRecentFiles, st}});
grid.addRow({s.askBeforeExit});
#ifdef ENABLE_CRASHPAD
grid.addRow({s.enableCrashReporting,
Row{m_clearCrashReportsButton,
m_crashReportsSizeText,
helpCrashReportingButton, st}});
const QString toolTip = Tr::tr("Crash reports are saved in \"%1\".")
.arg(appInfo().crashReports.toUserOutput());
m_clearCrashReportsButton->setToolTip(toolTip);
m_crashReportsSizeText->setToolTip(toolTip);
grid.addRow(
{s.enableCrashReporting,
Row{m_clearCrashReportsButton, m_crashReportsSizeText, helpCrashReportingButton, st}});
#endif
Column {