feat: ISSUE #I62BVT 添加网页通知功能

WebEngineView 中添加 WebEngineView::present(std::unique_ptr<QWebEngineNotification> &newNotification) 函数,通过 DNotifySender 转发系统通知

Log: 添加网页通知功能,通知图片缓存在 /tmp 下;使用 DLogManager 生成日志;修复强制使用 DTK 平台插件异常问题
This commit is contained in:
zty199
2022-12-19 02:26:07 +08:00
parent fa54612642
commit faa613d671
11 changed files with 179 additions and 26 deletions

View File

@@ -44,8 +44,8 @@ int main(int argc, char *argv[])
int fakeArgc = argc + 2;
QVector<char *> fakeArgv(fakeArgc);
fakeArgv[0] = argv[0];
fakeArgv[1] = QString("-platformtheme").toUtf8().data();
fakeArgv[2] = QString("deepin").toUtf8().data();
fakeArgv[1] = const_cast<char *>("-platformtheme");
fakeArgv[2] = const_cast<char *>("deepin");
for (int i = 1; i < argc; i++) {
fakeArgv[i + 2] = argv[i];
}
@@ -347,6 +347,7 @@ int main(int argc, char *argv[])
#endif
MainWindow w(szTitle, szUrl, width, height, tray, fullScreen, fixSize, hideButtons);
a.setMainWindow(&w);
QObject::connect(&a, &Application::newInstanceStarted, &w, &MainWindow::slotNewInstanceStarted);
QObject::connect(&w, &MainWindow::sigClose, &a, &Application::slotMainWindowClose);