mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-01 01:44:09 +00:00
18 lines
393 B
C
18 lines
393 B
C
|
#ifndef ARTICLEWEBPAGE_H
|
||
|
#define ARTICLEWEBPAGE_H
|
||
|
|
||
|
#include <QWebEnginePage>
|
||
|
|
||
|
class ArticleWebPage : public QWebEnginePage
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit ArticleWebPage( QObject * parent = nullptr );
|
||
|
signals:
|
||
|
void linkClicked( const QUrl & url );
|
||
|
protected:
|
||
|
virtual bool acceptNavigationRequest( const QUrl & url, NavigationType type, bool isMainFrame );
|
||
|
};
|
||
|
|
||
|
#endif // ARTICLEWEBPAGE_H
|