mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
22 lines
451 B
C++
22 lines
451 B
C++
#ifndef WEBPAGE_H
|
|
#define WEBPAGE_H
|
|
|
|
#include <QWebEnginePage>
|
|
|
|
namespace vnotex
|
|
{
|
|
class WebPage : public QWebEnginePage
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit WebPage(QWidget *p_parent = nullptr);
|
|
|
|
protected:
|
|
bool acceptNavigationRequest(const QUrl &p_url,
|
|
NavigationType p_type,
|
|
bool p_isMainFrame) Q_DECL_OVERRIDE;
|
|
};
|
|
}
|
|
|
|
#endif // WEBPAGE_H
|