Changeset View
Changeset View
Standalone View
Standalone View
messageviewer/src/viewer/webengine/mailwebenginepage.h
Show All 22 Lines | |||||
23 | #include <WebEngineViewer/WebEnginePage> | 23 | #include <WebEngineViewer/WebEnginePage> | ||
24 | 24 | | |||
25 | namespace MessageViewer { | 25 | namespace MessageViewer { | ||
26 | class MESSAGEVIEWER_EXPORT MailWebEnginePage : public WebEngineViewer::WebEnginePage | 26 | class MESSAGEVIEWER_EXPORT MailWebEnginePage : public WebEngineViewer::WebEnginePage | ||
27 | { | 27 | { | ||
28 | Q_OBJECT | 28 | Q_OBJECT | ||
29 | public: | 29 | public: | ||
30 | explicit MailWebEnginePage(QObject *parent = nullptr); | 30 | explicit MailWebEnginePage(QObject *parent = nullptr); | ||
31 | explicit MailWebEnginePage(QWebEngineProfile *profile, QObject *parent = nullptr); | 31 | virtual ~MailWebEnginePage() = default; | ||
32 | ~MailWebEnginePage(); | | |||
33 | 32 | | |||
34 | void setPrintElementBackground(bool printElementBackground); | 33 | void setPrintElementBackground(bool printElementBackground); | ||
35 | 34 | | |||
36 | private: | 35 | private: | ||
37 | void slotFeaturePermissionRequested(const QUrl &url, QWebEnginePage::Feature feature); | 36 | void slotFeaturePermissionRequested(const QUrl &url, QWebEnginePage::Feature feature); | ||
38 | void initialize(); | 37 | void initialize(); | ||
39 | }; | 38 | }; | ||
40 | } | 39 | } | ||
41 | #endif // MAILWEBENGINEPAGE_H | 40 | #endif // MAILWEBENGINEPAGE_H |