summaryrefslogtreecommitdiff
path: root/ui/qt5
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-17 04:10:26 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-05-17 04:10:26 -0500
commit309351017d15c755940da0bba1b8c3bf6bae40b8 (patch)
tree59003eb75833651d3a29c64be6031e7ffdb973ac /ui/qt5
parent3a1de05ba868d3a0f6c291ed83997b735575bb94 (diff)
downloadhorizon-309351017d15c755940da0bba1b8c3bf6bae40b8.tar.gz
horizon-309351017d15c755940da0bba1b8c3bf6bae40b8.tar.bz2
horizon-309351017d15c755940da0bba1b8c3bf6bae40b8.tar.xz
horizon-309351017d15c755940da0bba1b8c3bf6bae40b8.zip
Qt UI: Add What's This to all controls missing it
Diffstat (limited to 'ui/qt5')
-rw-r--r--ui/qt5/commitpage.cc2
-rw-r--r--ui/qt5/firmwarepage.cc2
-rw-r--r--ui/qt5/netdhcppage.cc1
-rw-r--r--ui/qt5/pkgsimple.cc5
4 files changed, 10 insertions, 0 deletions
diff --git a/ui/qt5/commitpage.cc b/ui/qt5/commitpage.cc
index c58729c..ed35c19 100644
--- a/ui/qt5/commitpage.cc
+++ b/ui/qt5/commitpage.cc
@@ -32,6 +32,8 @@ CommitPage::CommitPage(QWidget *parent) : HorizonWizardPage(parent) {
choices = new QLabel;
choices->setFrameStyle(QFrame::Panel | QFrame::Sunken);
choices->setTextFormat(Qt::RichText);
+ choices->setWhatsThis(tr("These are the options you have selected for installation. "
+ "Review them, and then choose Install to begin the installation process on your computer."));
choices->setWordWrap(true);
QVBoxLayout *layout = new QVBoxLayout;
diff --git a/ui/qt5/firmwarepage.cc b/ui/qt5/firmwarepage.cc
index 30e4247..a8d6fa5 100644
--- a/ui/qt5/firmwarepage.cc
+++ b/ui/qt5/firmwarepage.cc
@@ -28,7 +28,9 @@ FirmwarePage::FirmwarePage(QWidget *parent) : HorizonWizardPage(parent) {
descLabel->setWordWrap(true);
noButton = new QRadioButton(tr("&No, do not load firmware on this computer."));
+ noButton->setWhatsThis(tr("Selecting this option will not install proprietary firmware on this computer."));
yesButton = new QRadioButton(tr("&Yes, load firmware on this computer."));
+ yesButton->setWhatsThis(tr("Selecting this option will install proprietary firmware on this computer."));
yesButton->setChecked(true);
firmwareChoice = new QButtonGroup;
firmwareChoice->addButton(noButton);
diff --git a/ui/qt5/netdhcppage.cc b/ui/qt5/netdhcppage.cc
index 5ada162..ed4d394 100644
--- a/ui/qt5/netdhcppage.cc
+++ b/ui/qt5/netdhcppage.cc
@@ -32,6 +32,7 @@ NetDHCPPage::NetDHCPPage(QWidget *parent) : HorizonWizardPage(parent) {
logButton = new QPushButton(tr("Review DHCP Log"));
logButton->setHidden(true);
+ logButton->setWhatsThis(tr("Opens the DHCP client's log file in a log viewer."));
connect(logButton, &QPushButton::clicked, [=]() {
QFile logfile("/var/log/horizon/dhcpcd.log");
logfile.open(QFile::ReadOnly);
diff --git a/ui/qt5/pkgsimple.cc b/ui/qt5/pkgsimple.cc
index ecb192a..b784bc6 100644
--- a/ui/qt5/pkgsimple.cc
+++ b/ui/qt5/pkgsimple.cc
@@ -36,6 +36,7 @@ PkgSimplePage::PkgSimplePage(QWidget *parent) : HorizonWizardPage(parent) {
standardLabel = new QLabel(tr("Includes a full KDE desktop environment, including Web browser, email client, media player, and office suite."));
standardLabel->setBuddy(standardButton);
standardLabel->setWordWrap(true);
+ standardButton->setWhatsThis(standardLabel->text());
mobileButton = new QRadioButton(tr("&Mobile"));
mobileButton->setIcon(QIcon::fromTheme("battery"));
@@ -43,6 +44,7 @@ PkgSimplePage::PkgSimplePage(QWidget *parent) : HorizonWizardPage(parent) {
mobileLabel = new QLabel(tr("Includes the Standard software and additional utilities for notebook and tablet computers."));
mobileLabel->setBuddy(mobileButton);
mobileLabel->setWordWrap(true);
+ mobileButton->setWhatsThis(mobileLabel->text());
compactButton = new QRadioButton(tr("&Compact"));
compactButton->setIcon(QIcon::fromTheme("preferences-ubuntu-panel"));
@@ -50,6 +52,7 @@ PkgSimplePage::PkgSimplePage(QWidget *parent) : HorizonWizardPage(parent) {
compactLabel = new QLabel(tr("Includes a lightweight LXQt desktop environment and a text editor."));
compactLabel->setBuddy(compactButton);
compactLabel->setWordWrap(true);
+ compactButton->setWhatsThis(compactLabel->text());
textButton = new QRadioButton(tr("&Text-Only"));
textButton->setIcon(QIcon::fromTheme("utilities-terminal"));
@@ -57,6 +60,7 @@ PkgSimplePage::PkgSimplePage(QWidget *parent) : HorizonWizardPage(parent) {
textLabel = new QLabel(tr("Includes support for text-mode only. Select this option on servers, or computers with very limited resources."));
textLabel->setBuddy(textButton);
textLabel->setWordWrap(true);
+ textButton->setWhatsThis(textLabel->text());
customButton = new QRadioButton(tr("C&ustom"));
customButton->setIcon(QIcon::fromTheme("preferences-activities"));
@@ -64,6 +68,7 @@ PkgSimplePage::PkgSimplePage(QWidget *parent) : HorizonWizardPage(parent) {
customLabel = new QLabel(tr("Customise the packages installed on your computer."));
customLabel->setBuddy(customButton);
customLabel->setWordWrap(true);
+ customButton->setWhatsThis(customLabel->text());
QButtonGroup *group = new QButtonGroup(this);
group->addButton(standardButton, HorizonWizard::Standard);