1
0

auto adjust window size

This commit is contained in:
Gary Wang
2019-10-01 11:44:35 +08:00
parent 8726a04d95
commit 7a7dcad9c6
5 changed files with 142 additions and 8 deletions

View File

@@ -17,6 +17,7 @@ public:
~MainWindow() override;
void showUrls(const QList<QUrl> &urls);
void adjustWindowSizeBySceneRect();
protected slots:
void showEvent(QShowEvent *event) override;
@@ -28,6 +29,7 @@ protected slots:
bool nativeEvent(const QByteArray& eventType, void* message, long* result) override;
void centerWindow();
void closeWindow();
void updateWidgetsPosition();