mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-09-23 03:32:22 +08:00
Change window sizePolicy from setFixedSize to setMinimumSize; Change icon name; Update part of translation.
33 lines
558 B
C++
33 lines
558 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <DMainWindow>
|
|
|
|
#include "widget.h"
|
|
#include "globaldefine.h"
|
|
|
|
DWIDGET_USE_NAMESPACE
|
|
|
|
class MainWindow : public DMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MainWindow(QString szTitle = DEFAULT_TITLE,
|
|
QString szUrl = DEFAULT_URL,
|
|
int nWidth = DEFAULT_WIDTH,
|
|
int nHeight = DEFAULT_HEIGHT,
|
|
QWidget *parent = nullptr);
|
|
~MainWindow();
|
|
|
|
void setIcon(QString);
|
|
|
|
signals:
|
|
void sigQuit();
|
|
|
|
private:
|
|
Widget *m_widget;
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|