mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-09-11 13:52:23 +08:00
30 lines
522 B
C++
30 lines
522 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 = 0);
|
|
~MainWindow();
|
|
|
|
void setIcon(QString);
|
|
|
|
private:
|
|
Widget *m_widget;
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|