mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-08-22 12:22:20 +08:00
WebEngineView 中添加 WebEngineView::present(std::unique_ptr<QWebEngineNotification> &newNotification) 函数,通过 DNotifySender 转发系统通知 Log: 添加网页通知功能,通知图片缓存在 /tmp 下;使用 DLogManager 生成日志;修复强制使用 DTK 平台插件异常问题
41 lines
661 B
C++
41 lines
661 B
C++
#ifndef APPLICATION_H
|
|
#define APPLICATION_H
|
|
|
|
#include "mainwindow.h"
|
|
|
|
#include <DApplication>
|
|
|
|
DWIDGET_USE_NAMESPACE
|
|
|
|
class Application : public DApplication
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Application(int &argc, char **argv);
|
|
void handleAboutAction() override;
|
|
|
|
QStringList launchParams() const;
|
|
|
|
void setMainWindow(MainWindow *window);
|
|
MainWindow *mainWindow();
|
|
|
|
private:
|
|
void saveLaunchParams(int &argc, char **argv);
|
|
void initAboutDialog();
|
|
|
|
signals:
|
|
void sigQuit();
|
|
|
|
public slots:
|
|
void slotMainWindowClose();
|
|
|
|
private:
|
|
MainWindow *m_mainWindow = nullptr;
|
|
|
|
int m_argc;
|
|
QStringList m_argv;
|
|
};
|
|
|
|
#endif // APPLICATION_H
|