mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-09-21 18:52:22 +08:00
WebEngineView 中添加 WebEngineView::present(std::unique_ptr<QWebEngineNotification> &newNotification) 函数,通过 DNotifySender 转发系统通知 Log: 添加网页通知功能,通知图片缓存在 /tmp 下;使用 DLogManager 生成日志;修复强制使用 DTK 平台插件异常问题
23 lines
502 B
C++
23 lines
502 B
C++
#ifndef WEBENGINEVIEW_H
|
|
#define WEBENGINEVIEW_H
|
|
|
|
#include <QWebEngineView>
|
|
#include <QWebEngineNotification>
|
|
|
|
// class WebEngineUrlRequestInterceptor;
|
|
class WebEngineView : public QWebEngineView
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit WebEngineView(QWidget *parent = nullptr);
|
|
|
|
static void handleChromiumFlags();
|
|
static void present(std::unique_ptr<QWebEngineNotification> &newNotification);
|
|
|
|
private:
|
|
// WebEngineUrlRequestInterceptor *interceptor = nullptr;
|
|
};
|
|
|
|
#endif // WEBENGINEVIEW_H
|