v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
39
attic/launcher/Launcher.hpp
Normal file
39
attic/launcher/Launcher.hpp
Normal file
|
@ -0,0 +1,39 @@
|
|||
#ifndef STAR_LAUNCHER_HPP
|
||||
#define STAR_LAUNCHER_HPP
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QWebEngineView>
|
||||
|
||||
class Launcher : public QMainWindow {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Launcher();
|
||||
|
||||
private slots:
|
||||
void runClient();
|
||||
void runServer();
|
||||
|
||||
private:
|
||||
QWebEngineView* m_web;
|
||||
};
|
||||
|
||||
class WebPage : public QWebEnginePage {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
using QWebEnginePage::QWebEnginePage;
|
||||
|
||||
bool acceptNavigationRequest(QUrl const& url, NavigationType type, bool isMainFrame);
|
||||
};
|
||||
|
||||
class WebView : public QWebEngineView {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
using QWebEngineView::QWebEngineView;
|
||||
|
||||
QWebEngineView* createWindow(QWebEnginePage::WebWindowType type);
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue