summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2021-01-05 11:31:58 +0200
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2021-01-15 09:26:58 +0200
commitf61c19eb81dc692b9c5215f5bf94f3426b0f4f86 (patch)
tree622d6081127d33bac8f89027a0733eaffd8fcf33
parent3daae29e295e3220f6aba001fe799a330e36c52e (diff)
Provide tooltip texts for buttons
The standard buttons in WizardButton enum (Back, Next, Cancel...) were omitted as they are quite self explanatory. Task-number: QTIFW-2073 Change-Id: I4a6257d2f772c781f4bbc505c03ed289cbf4f36c Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tino Pyssysalo <tino.pyssysalo@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
-rw-r--r--src/libs/installer/componentselectionpage_p.cpp10
-rw-r--r--src/libs/installer/packagemanagergui.cpp3
2 files changed, 13 insertions, 0 deletions
diff --git a/src/libs/installer/componentselectionpage_p.cpp b/src/libs/installer/componentselectionpage_p.cpp
index e1ca0a3a1..31c4dbedc 100644
--- a/src/libs/installer/componentselectionpage_p.cpp
+++ b/src/libs/installer/componentselectionpage_p.cpp
@@ -102,12 +102,15 @@ ComponentSelectionPagePrivate::ComponentSelectionPagePrivate(ComponentSelectionP
m_checkDefault->setShortcut(QKeySequence(ComponentSelectionPage::tr("Alt+A",
"select default components")));
m_checkDefault->setText(ComponentSelectionPage::tr("Def&ault"));
+ m_checkDefault->setToolTip(ComponentSelectionPage::tr("Select default components in the tree view."));
} else {
m_checkDefault->setEnabled(false);
m_checkDefault->setObjectName(QLatin1String("ResetComponentsButton"));
m_checkDefault->setShortcut(QKeySequence(ComponentSelectionPage::tr("Alt+R",
"reset to already installed components")));
m_checkDefault->setText(ComponentSelectionPage::tr("&Reset"));
+ m_checkDefault->setToolTip(
+ ComponentSelectionPage::tr("Reset all components to their original selection state in the tree view."));
}
buttonHLayout->addWidget(m_checkDefault);
@@ -118,6 +121,7 @@ ComponentSelectionPagePrivate::ComponentSelectionPagePrivate(ComponentSelectionP
m_checkAll->setShortcut(QKeySequence(ComponentSelectionPage::tr("Alt+S",
"select all components")));
m_checkAll->setText(ComponentSelectionPage::tr("&Select All"));
+ m_checkAll->setToolTip(ComponentSelectionPage::tr("Select all components in the tree view."));
buttonHLayout->addWidget(m_checkAll);
m_uncheckAll = new QPushButton;
@@ -127,6 +131,7 @@ ComponentSelectionPagePrivate::ComponentSelectionPagePrivate(ComponentSelectionP
m_uncheckAll->setShortcut(QKeySequence(ComponentSelectionPage::tr("Alt+D",
"deselect all components")));
m_uncheckAll->setText(ComponentSelectionPage::tr("&Deselect All"));
+ m_uncheckAll->setToolTip(ComponentSelectionPage::tr("Deselect all components in the tree view."));
buttonHLayout->addWidget(m_uncheckAll);
QWidget *progressStackedWidget = new QWidget();
@@ -193,6 +198,9 @@ void ComponentSelectionPagePrivate::showCompressedRepositoryButton()
wizard->setOption(QWizard::HaveCustomButton2, true);
wizard->setButtonText(QWizard::CustomButton2,
ComponentSelectionPage::tr("&Browse QBSP files"));
+ wizard->button(QWizard::CustomButton2)->setToolTip(
+ ComponentSelectionPage::tr("Select a Qt Board Support Package file to install "
+ "additional content that is not directly available from the online repositories."));
connect(wizard, &QWizard::customButtonClicked,
this, &ComponentSelectionPagePrivate::customButtonClicked);
q->gui()->updateButtonLayout();
@@ -224,6 +232,8 @@ void ComponentSelectionPagePrivate::setupCategoryLayout()
QVBoxLayout *categoryLayout = new QVBoxLayout(m_categoryGroupBox);
QPushButton *fetchCategoryButton = new QPushButton(tr("Filter"));
fetchCategoryButton->setObjectName(QLatin1String("FetchCategoryButton"));
+ fetchCategoryButton->setToolTip(
+ ComponentSelectionPage::tr("Filter the enabled repository categories to selection."));
connect(fetchCategoryButton, &QPushButton::clicked, this,
&ComponentSelectionPagePrivate::fetchRepositoryCategories);
diff --git a/src/libs/installer/packagemanagergui.cpp b/src/libs/installer/packagemanagergui.cpp
index 72dee3027..13113755e 100644
--- a/src/libs/installer/packagemanagergui.cpp
+++ b/src/libs/installer/packagemanagergui.cpp
@@ -999,6 +999,8 @@ void PackageManagerGui::showSettingsButton(bool show)
d->m_showSettingsButton = show;
setOption(QWizard::HaveCustomButton1, show);
setButtonText(QWizard::CustomButton1, tr("Settings"));
+ button(QWizard::CustomButton1)->setToolTip(
+ PackageManagerGui::tr("Specify proxy settings and configure repositories for add-on components."));
updateButtonLayout();
}
@@ -2282,6 +2284,7 @@ TargetDirectoryPage::TargetDirectoryPage(PackageManagerCore *core)
connect(browseButton, &QAbstractButton::clicked, this, &TargetDirectoryPage::dirRequested);
browseButton->setShortcut(QKeySequence(tr("Alt+R", "browse file system to choose a file")));
browseButton->setText(tr("B&rowse..."));
+ browseButton->setToolTip(TargetDirectoryPage::tr("Browse file system to choose the installation directory."));
hlayout->addWidget(browseButton);
layout->addLayout(hlayout);