From bcff79985ebe4c2d09eda749a99a005dc65b6b52 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 1 Mar 2020 13:42:30 -0600 Subject: Qt UI: Add What's This to the rest of the UI --- ui/qt5/datetimepage.cc | 4 ++++ ui/qt5/netmanualpage.cc | 11 +++++++++++ ui/qt5/stepprogresswidget.cc | 2 ++ 3 files changed, 17 insertions(+) (limited to 'ui') diff --git a/ui/qt5/datetimepage.cc b/ui/qt5/datetimepage.cc index fb027aa..492c264 100644 --- a/ui/qt5/datetimepage.cc +++ b/ui/qt5/datetimepage.cc @@ -138,9 +138,11 @@ DateTimePage::DateTimePage(QWidget *parent) : HorizonWizardPage(parent) { dateEdit = new QDateEdit(QDate::currentDate()); dateEdit->setDisplayFormat("dd MMMM yyyy"); dateEdit->setEnabled(false); + dateEdit->setWhatsThis(tr("Allows you to input the current date.")); timeEdit = new QTimeEdit(QTime::currentTime()); timeEdit->setDisplayFormat("HH:mm:ss"); timeEdit->setEnabled(false); + timeEdit->setWhatsThis(tr("Allows you to input the current time.")); #ifdef HAS_INSTALL_ENV /* explanations: @@ -186,6 +188,7 @@ DateTimePage::DateTimePage(QWidget *parent) : HorizonWizardPage(parent) { timeZoneSearch->addAction(QIcon::fromTheme("edit-find"), QLineEdit::LeadingPosition); timeZoneSearch->setPlaceholderText(tr("Search for a time zone")); + timeZoneSearch->setWhatsThis(tr("Type here to search for a time zone.")); sortModel = new QSortFilterProxyModel(this); sortModel->setFilterCaseSensitivity(Qt::CaseInsensitive); sortModel->setSourceModel(&zoneModel); @@ -195,6 +198,7 @@ DateTimePage::DateTimePage(QWidget *parent) : HorizonWizardPage(parent) { timeZoneList = new QListView; timeZoneList->setModel(sortModel); timeZoneList->setSelectionMode(QAbstractItemView::SingleSelection); + timeZoneList->setWhatsThis(tr("This list contains all time zones known to the system. Select the one you wish to use for representing time on this computer.")); connect(timeZoneList->selectionModel(), &QItemSelectionModel::currentChanged, [=]() { emit timezoneChanged(); diff --git a/ui/qt5/netmanualpage.cc b/ui/qt5/netmanualpage.cc index 346746c..1486461 100644 --- a/ui/qt5/netmanualpage.cc +++ b/ui/qt5/netmanualpage.cc @@ -27,15 +27,20 @@ NetManualPage::NetManualPage(QWidget *parent) : HorizonWizardPage(parent) { QVBoxLayout *v4Pane = new QVBoxLayout; useV4 = new QCheckBox(tr("Enable IPv&4")); useV4->setChecked(true); + useV4->setWhatsThis(tr("Enables the IPv4 protocol for network connectivity.")); v4Addr = new QLineEdit; v4Addr->setInputMask("900.900.900.900;_"); + v4Addr->setWhatsThis(tr("The IPv4 address for this computer.")); v4Prefix = new SubnetBox; v4Prefix->setSubnetCIDR(24); + v4Prefix->setWhatsThis(tr("The subnet prefix/mask for this computer's IPv4 network.")); v4Gateway = new QLineEdit; v4Gateway->setInputMask("900.900.900.900;_"); + v4Gateway->setWhatsThis(tr("The default gateway for IPv4 traffic.")); v4DNS = new QLineEdit; v4DNS->setInputMask("900.900.900.900;_"); v4DNS->setText("9.9.9.9"); + v4DNS->setWhatsThis(tr("The DNS server to use for IPv4 name resolution.")); connect(useV4, &QCheckBox::toggled, [=](bool ticked) { v4Addr->setEnabled(ticked); @@ -75,13 +80,18 @@ NetManualPage::NetManualPage(QWidget *parent) : HorizonWizardPage(parent) { QVBoxLayout *v6Pane = new QVBoxLayout; useV6 = new QCheckBox(tr("Enable IPv&6")); useV6->setChecked(true); + useV6->setWhatsThis(tr("Enables the IPv6 protocol for network connectivity.")); v6Addr = new QLineEdit; + v6Addr->setWhatsThis(tr("The IPv6 address for this computer.")); v6Prefix = new QSpinBox; v6Prefix->setRange(1, 128); v6Prefix->setValue(64); + v6Prefix->setWhatsThis(tr("The subnet prefix for this computer's IPv6 network.")); v6Gateway = new QLineEdit; + v6Gateway->setWhatsThis(tr("The default gateway for IPv6 traffic.")); v6DNS = new QLineEdit; v6DNS->setText("2620:fe::fe"); + v4DNS->setWhatsThis(tr("The DNS server to use for IPv6 name resolution.")); connect(useV6, &QCheckBox::toggled, [=](bool ticked) { v6Addr->setEnabled(ticked); @@ -148,6 +158,7 @@ void NetManualPage::initializePage() { if(horizonWizard()->interfaces.size() != 1) { QComboBox *ifaceBox = new QComboBox; + ifaceBox->setWhatsThis(tr("The network interface to use for this computer's primary network connection. You may configure additional interfaces after installation.")); ifaceWidget->layout()->addWidget(new QLabel(tr("Use interface: "))); ifaceWidget->layout()->addWidget(ifaceBox); diff --git a/ui/qt5/stepprogresswidget.cc b/ui/qt5/stepprogresswidget.cc index 445cd2e..f02265a 100644 --- a/ui/qt5/stepprogresswidget.cc +++ b/ui/qt5/stepprogresswidget.cc @@ -29,6 +29,8 @@ StepProgressWidget::StepProgressWidget(QWidget *parent) : QWidget(parent) { myFont.setBold(true); boldFont = myFont; + setWhatsThis(tr("Displays the current status of System Installation tasks.")); + stepGrid = new QGridLayout; stepGrid->setColumnStretch(1, 100); -- cgit v1.2.3-70-g09d2