summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-15 13:07:04 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-15 13:07:04 -0600
commite861058273ee99574f2425cfd1c1a0b510a95736 (patch)
tree92ae7103a594afaaacfa6a2c16e0d4da49c26fc2
parentcf7ec8392503bb19d0c55d644045c0e21c1d9c4f (diff)
downloadhorizon-e861058273ee99574f2425cfd1c1a0b510a95736.tar.gz
horizon-e861058273ee99574f2425cfd1c1a0b510a95736.tar.bz2
horizon-e861058273ee99574f2425cfd1c1a0b510a95736.tar.xz
horizon-e861058273ee99574f2425cfd1c1a0b510a95736.zip
Qt UI: HorizonHelpWindow: Change 'plain' to 'log', use log path for title
-rw-r--r--ui/qt5/horizonhelpwindow.cc7
-rw-r--r--ui/qt5/horizonhelpwindow.hh2
2 files changed, 5 insertions, 4 deletions
diff --git a/ui/qt5/horizonhelpwindow.cc b/ui/qt5/horizonhelpwindow.cc
index e1ddc7a..a22f511 100644
--- a/ui/qt5/horizonhelpwindow.cc
+++ b/ui/qt5/horizonhelpwindow.cc
@@ -16,7 +16,7 @@
#include <QTextEdit>
#include <QVBoxLayout>
-HorizonHelpWindow::HorizonHelpWindow(QFile *helpFile, QWidget *parent, bool plain) :
+HorizonHelpWindow::HorizonHelpWindow(QFile *helpFile, QWidget *parent, bool log) :
QDialog(parent), helpFile(helpFile) {
QDialogButtonBox *buttonBox;
QTextEdit *helpText;
@@ -24,13 +24,14 @@ HorizonHelpWindow::HorizonHelpWindow(QFile *helpFile, QWidget *parent, bool plai
setFixedSize(QSize(600, 400));
setSizeGripEnabled(false);
- setWindowTitle("Horizon Help");
helpText = new QTextEdit(this);
helpText->setReadOnly(true);
- if(plain) {
+ if(log) {
+ setWindowTitle(helpFile->fileName());
helpText->setText(helpFile->readAll().toStdString().c_str());
} else {
+ setWindowTitle("Horizon Help");
helpText->setHtml(helpFile->readAll().toStdString().c_str());
}
helpText->setWhatsThis(tr("This window contains information about the current page of Adélie Linux System Installation."));
diff --git a/ui/qt5/horizonhelpwindow.hh b/ui/qt5/horizonhelpwindow.hh
index 83635f6..a0f6105 100644
--- a/ui/qt5/horizonhelpwindow.hh
+++ b/ui/qt5/horizonhelpwindow.hh
@@ -19,7 +19,7 @@
class HorizonHelpWindow : public QDialog {
Q_OBJECT
public:
- explicit HorizonHelpWindow(QFile *helpFile, QWidget *parent = nullptr, bool plain = false);
+ explicit HorizonHelpWindow(QFile *helpFile, QWidget *parent = nullptr, bool log = false);
private:
QFile *helpFile;
};