mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-12-15 03:22:05 +08:00
Improve Features
Support run in Fullscreen mode; Suppport "save as" when downloading files.
This commit is contained in:
@@ -2,9 +2,7 @@
|
||||
#define WEBENGINEPAGE_H
|
||||
|
||||
#include <QWebEnginePage>
|
||||
#include <QWebEngineProfile>
|
||||
#include <QObject>
|
||||
#include <QProcess>
|
||||
|
||||
class WebEnginePage : public QWebEnginePage
|
||||
{
|
||||
@@ -14,16 +12,8 @@ public:
|
||||
protected:
|
||||
QWebEnginePage *createWindow(WebWindowType type) override;
|
||||
|
||||
private:
|
||||
QWebEngineProfile *m_profile;
|
||||
|
||||
QProcess *process;
|
||||
|
||||
private slots:
|
||||
void on_urlChanged(const QUrl url);
|
||||
void on_download(QWebEngineDownloadItem *item);
|
||||
void on_downloadProgress(qint64 bytesReceived, qint64 bytesTotal);
|
||||
void on_downloadFinished();
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user