cppcheck/gui/helpdialog.h

35 lines
650 B
C
Raw Normal View History

2020-07-20 11:59:28 +02:00
#ifndef HELPDIALOG_H
#define HELPDIALOG_H
#include <QDialog>
#include <QTextBrowser>
namespace Ui {
2020-07-20 21:41:46 +02:00
class HelpDialog;
2020-07-20 11:59:28 +02:00
}
class QHelpEngine;
2020-07-20 21:41:46 +02:00
class HelpBrowser : public QTextBrowser {
2020-07-20 11:59:28 +02:00
public:
HelpBrowser(QWidget* parent = 0) : QTextBrowser(parent), mHelpEngine(nullptr) {}
void setHelpEngine(QHelpEngine *helpEngine);
2020-07-20 21:41:46 +02:00
QVariant loadResource(int type, const QUrl& name);
2020-07-20 11:59:28 +02:00
private:
QHelpEngine* mHelpEngine;
};
2020-07-20 21:41:46 +02:00
class HelpDialog : public QDialog {
2020-07-20 11:59:28 +02:00
Q_OBJECT
public:
explicit HelpDialog(QWidget *parent = nullptr);
~HelpDialog();
private:
Ui::HelpDialog *mUi;
QHelpEngine* mHelpEngine;
};
#endif // HELPDIALOG_H