diff options
-rw-r--r-- | ui/qt5/horizonhelpwindow.cc | 8 | ||||
-rw-r--r-- | ui/qt5/horizonhelpwindow.hh | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/ui/qt5/horizonhelpwindow.cc b/ui/qt5/horizonhelpwindow.cc index fb05ba9..e1ddc7a 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) : +HorizonHelpWindow::HorizonHelpWindow(QFile *helpFile, QWidget *parent, bool plain) : QDialog(parent), helpFile(helpFile) { QDialogButtonBox *buttonBox; QTextEdit *helpText; @@ -28,7 +28,11 @@ HorizonHelpWindow::HorizonHelpWindow(QFile *helpFile, QWidget *parent) : helpText = new QTextEdit(this); helpText->setReadOnly(true); - helpText->setHtml(helpFile->readAll().toStdString().c_str()); + if(plain) { + helpText->setText(helpFile->readAll().toStdString().c_str()); + } else { + helpText->setHtml(helpFile->readAll().toStdString().c_str()); + } helpText->setWhatsThis(tr("This window contains information about the current page of Adélie Linux System Installation.")); buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok, this); diff --git a/ui/qt5/horizonhelpwindow.hh b/ui/qt5/horizonhelpwindow.hh index b3ef3f1..83635f6 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 = 0); + explicit HorizonHelpWindow(QFile *helpFile, QWidget *parent = nullptr, bool plain = false); private: QFile *helpFile; }; |