mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 23:54:05 +00:00
b5349478cf
The next commit will add `.git-blame-ignore-revs` https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
29 lines
489 B
C++
29 lines
489 B
C++
#ifndef ARTICLEWEBPAGE_H
|
|
#define ARTICLEWEBPAGE_H
|
|
|
|
#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;
|
|
};
|
|
|
|
#endif // ARTICLEWEBPAGE_H
|