mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-12-15 03:22:05 +08:00
Improve Feature
Add options "Fix Size" and "Hide Buttons" in titlebar GUI menu. P.S. Command Line settings is not included.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <DMainWindow>
|
||||
#include <DAboutDialog>
|
||||
#include <DToolButton>
|
||||
|
||||
#include "widget.h"
|
||||
#include "globaldefine.h"
|
||||
@@ -23,6 +24,8 @@ public:
|
||||
~MainWindow();
|
||||
|
||||
void setIcon(QString);
|
||||
void fixSize();
|
||||
void hideButtons();
|
||||
|
||||
signals:
|
||||
void sigQuit();
|
||||
@@ -31,6 +34,16 @@ private:
|
||||
Widget *m_widget;
|
||||
DAboutDialog *m_dialog;
|
||||
|
||||
DToolButton *btnBackward;
|
||||
DToolButton *btnForward;
|
||||
DToolButton *btnRefresh;
|
||||
|
||||
QMenu *m_menu;
|
||||
QAction *m_fixSize;
|
||||
QAction *m_hideButtons;
|
||||
|
||||
int m_width, m_height;
|
||||
|
||||
void closeEvent(QCloseEvent *event);
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user