mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-09-19 01:32:22 +08:00
Change window sizePolicy from setFixedSize to setMinimumSize; Change icon name; Update part of translation.
32 lines
443 B
C++
32 lines
443 B
C++
#ifndef WIDGET_H
|
|
#define WIDGET_H
|
|
|
|
#include <QWidget>
|
|
|
|
namespace Ui
|
|
{
|
|
class Widget;
|
|
}
|
|
|
|
class QWebEngineView;
|
|
|
|
class Widget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Widget(QString szUrl = QString(), QWidget *parent = nullptr);
|
|
~Widget();
|
|
|
|
void goBack();
|
|
void goForward();
|
|
void refresh();
|
|
|
|
private:
|
|
Ui::Widget *ui;
|
|
QWebEngineView *m_webEngineView;
|
|
QString m_szUrl;
|
|
};
|
|
|
|
#endif // WIDGET_H
|