qt: Properly set saved window size
This commit is contained in:
@@ -468,10 +468,9 @@ void MainWindow::showEvent(QShowEvent *event) {
|
|||||||
scrnsz_y = fixed_size_y;
|
scrnsz_y = fixed_size_y;
|
||||||
}
|
}
|
||||||
else if (window_remember && vid_resize == 1) {
|
else if (window_remember && vid_resize == 1) {
|
||||||
resize(window_w, window_h
|
ui->stackedWidget->setFixedSize(window_w, window_h);
|
||||||
+ menuBar()->height()
|
adjustSize();
|
||||||
+ (hide_status_bar ? 0 : statusBar()->height())
|
ui->stackedWidget->setFixedSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
|
||||||
+ (hide_tool_bar ? 0 : ui->toolBar->height()) + 1);
|
|
||||||
scrnsz_x = window_w;
|
scrnsz_x = window_w;
|
||||||
scrnsz_y = window_h;
|
scrnsz_y = window_h;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user