Files
yacreader/custom_widgets/help_about_dialog.h
luisangelsm 6b3fcc63d3 Make help/about dialog themable
Just the hardcoded colors used, the rest of the dialog will be themed by Qt.
2026-02-19 18:06:31 +01:00

38 lines
847 B
C++

#ifndef HELP_ABOUT_DIALOG_H
#define HELP_ABOUT_DIALOG_H
#include <QDialog>
#include "themable.h"
class QTabWidget;
class QTextBrowser;
class HelpAboutDialog : public QDialog, protected Themable
{
Q_OBJECT
protected:
void applyTheme(const Theme &theme) override;
public:
HelpAboutDialog(QWidget *parent = 0);
HelpAboutDialog(const QString &pathAbout, const QString &pathHelp, QWidget *parent = 0);
public slots:
void loadAboutInformation(const QString &path);
void loadHelp(const QString &path);
private:
QTabWidget *tabWidget;
QTextBrowser *aboutText;
QTextBrowser *helpText;
QTextBrowser *systemInfoText;
QString fileToString(const QString &path);
void loadSystemInfo();
void applyHtmlTheme();
QString aboutHtmlContent;
QString helpHtmlContent;
};
#endif // HELP_ABOUT_DIALOG_H