mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-09-22 19:22:21 +08:00
Using DDesktopServices::showFileItem() instead of calling dde-file-manager directly in QProcess; Delete useless QDebug info and headers include.
22 lines
386 B
C++
22 lines
386 B
C++
#ifndef WEBENGINEPAGE_H
|
|
#define WEBENGINEPAGE_H
|
|
|
|
#include <QWebEnginePage>
|
|
#include <QWebEngineProfile>
|
|
#include <QObject>
|
|
|
|
class WebEnginePage : public QWebEnginePage
|
|
{
|
|
public:
|
|
WebEnginePage(QObject *parent = nullptr);
|
|
|
|
protected:
|
|
QWebEnginePage *createWindow(WebWindowType type) override;
|
|
|
|
private slots:
|
|
void on_urlChanged(const QUrl url);
|
|
|
|
};
|
|
|
|
#endif // WEBENGINEPAGE_H
|