goldendict-ng/src/ui/articlewebpage.hh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
424 B
C++
Raw Normal View History

2024-11-07 03:53:04 +00:00
#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;
};