forked from qt-creator/qt-creator
Use common tool tip for "Configure..." kind of buttons
We have a function that centralizes the text for that. Change-Id: I9d9fbed6e111038e7512030e199b8d8d03fbbafa Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -436,7 +436,7 @@ void CorePlugin::warnAboutCrashReporing()
|
||||
|
||||
Utils::InfoBarEntry info(kWarnCrashReportingSetting, warnStr,
|
||||
Utils::InfoBarEntry::GlobalSuppression::Enabled);
|
||||
info.addCustomButton(Tr::tr("Configure..."), [] {
|
||||
info.addCustomButton(ICore::msgShowOptionsDialog(), [] {
|
||||
ICore::infoBar()->removeInfo(kWarnCrashReportingSetting);
|
||||
ICore::infoBar()->globallySuppressInfo(kWarnCrashReportingSetting);
|
||||
ICore::showOptionsDialog(Core::Constants::SETTINGS_ID_SYSTEM);
|
||||
|
||||
@@ -188,7 +188,7 @@ AppOutputPane::AppOutputPane() :
|
||||
connect(this, &IOutputPane::zoomOutRequested, this, &AppOutputPane::zoomOut);
|
||||
connect(this, &IOutputPane::resetZoomRequested, this, &AppOutputPane::resetZoom);
|
||||
|
||||
m_settingsButton->setToolTip(Tr::tr("Open Settings Page"));
|
||||
m_settingsButton->setToolTip(Core::ICore::msgShowOptionsDialog());
|
||||
m_settingsButton->setIcon(Utils::Icons::SETTINGS_TOOLBAR.icon());
|
||||
connect(m_settingsButton, &QToolButton::clicked, this, [] {
|
||||
Core::ICore::showOptionsDialog(OPTIONS_PAGE_ID);
|
||||
|
||||
@@ -64,7 +64,7 @@ CompileOutputWindow::CompileOutputWindow(QAction *cancelBuildAction) :
|
||||
Utils::ProxyAction::proxyActionWithIcon(cancelBuildAction,
|
||||
Utils::Icons::STOP_SMALL_TOOLBAR.icon());
|
||||
m_cancelBuildButton->setDefaultAction(cancelBuildProxyButton);
|
||||
m_settingsButton->setToolTip(Tr::tr("Open Settings Page"));
|
||||
m_settingsButton->setToolTip(Core::ICore::msgShowOptionsDialog());
|
||||
m_settingsButton->setIcon(Utils::Icons::SETTINGS_TOOLBAR.icon());
|
||||
|
||||
auto updateFontSettings = [this] {
|
||||
|
||||
@@ -188,7 +188,7 @@ SubmitEditorWidget::SubmitEditorWidget() :
|
||||
d->buttonLayout->setContentsMargins(0, -1, -1, -1);
|
||||
QToolButton *openSettingsButton = new QToolButton;
|
||||
openSettingsButton->setIcon(Utils::Icons::SETTINGS.icon());
|
||||
openSettingsButton->setToolTip(Tr::tr("Open Settings Page..."));
|
||||
openSettingsButton->setToolTip(Core::ICore::msgShowOptionsDialog());
|
||||
connect(openSettingsButton, &QToolButton::clicked, this, [] {
|
||||
Core::ICore::showOptionsDialog(Constants::VCS_COMMON_SETTINGS_ID);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user