jenkinsmain
Last change
on this file since 6b6f1ba was
6b6f1ba,
checked in by Vadim Troshchinskiy Shmelev <vtroshchinskiy@…>, 16 months ago
|
Fix build, missing file in cmake
|
-
Property mode set to
100644
|
File size:
556 bytes
|
Rev | Line | |
---|
[6b6f1ba] | 1 | |
---|
| 2 | #include <QWebEnginePage> |
---|
| 3 | #include <QDebug> |
---|
| 4 | |
---|
| 5 | #include "ogcommandlne.h" |
---|
| 6 | |
---|
| 7 | class MainWindow; |
---|
| 8 | |
---|
| 9 | class OGWebPage : public QWebEnginePage { |
---|
| 10 | public: |
---|
| 11 | |
---|
| 12 | OGWebPage(QObject *parent) : QWebEnginePage(parent) { |
---|
| 13 | qDebug() << "OGWebPage constructed!"; |
---|
| 14 | } |
---|
| 15 | |
---|
| 16 | virtual bool acceptNavigationRequest(const QUrl &url, QWebEnginePage::NavigationType type, bool isMainFrame); |
---|
| 17 | virtual QWebEnginePage *createWindow(QWebEnginePage::WebWindowType type); |
---|
| 18 | |
---|
| 19 | void setMainWindow(MainWindow *mw) { m_mainWindow = mw; } |
---|
| 20 | |
---|
| 21 | private: |
---|
| 22 | MainWindow *m_mainWindow; |
---|
| 23 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.