summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-03-01 13:42:30 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-03-01 13:42:30 -0600
commitbcff79985ebe4c2d09eda749a99a005dc65b6b52 (patch)
treef442846cf945f31f28aa84bb6ace204f6a5e5263 /ui
parent75f10ffe70935187bb900501866a8d555b83a855 (diff)
downloadhorizon-bcff79985ebe4c2d09eda749a99a005dc65b6b52.tar.gz
horizon-bcff79985ebe4c2d09eda749a99a005dc65b6b52.tar.bz2
horizon-bcff79985ebe4c2d09eda749a99a005dc65b6b52.tar.xz
horizon-bcff79985ebe4c2d09eda749a99a005dc65b6b52.zip
Qt UI: Add What's This to the rest of the UI
Diffstat (limited to 'ui')
-rw-r--r--ui/qt5/datetimepage.cc4
-rw-r--r--ui/qt5/netmanualpage.cc11
-rw-r--r--ui/qt5/stepprogresswidget.cc2
3 files changed, 17 insertions, 0 deletions
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);