mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 19:44:06 +00:00
26 lines
424 B
C++
26 lines
424 B
C++
#pragma once
|
|
|
|
#include <QWebEnginePage>
|
|
|
|
struct LastReqInfo
|
|
{
|
|
QString group;
|
|
QString mutedDicts;
|
|
};
|
|
|
|
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 );
|
|
|
|
private:
|
|
LastReqInfo lastReq;
|
|
};
|