qt: Add toolbar
This commit is contained in:
@@ -45,7 +45,13 @@ void SpecifyDimensions::on_SpecifyDimensions_accepted()
|
||||
window_remember = 0;
|
||||
fixed_size_x = ui->spinBoxWidth->value();
|
||||
fixed_size_y = ui->spinBoxHeight->value();
|
||||
main_window->setFixedSize(ui->spinBoxWidth->value(), ui->spinBoxHeight->value() + (!hide_status_bar ? main_window->statusBar()->height() : 0) + main_window->menuBar()->height());
|
||||
|
||||
main_window->setFixedSize(ui->spinBoxWidth->value(),
|
||||
ui->spinBoxHeight->value()
|
||||
+ (!hide_status_bar ? main_window->statusBar()->height() : 0)
|
||||
+ (!hide_tool_bar ? main_window->ui->toolBar->height() : 0)
|
||||
+ main_window->menuBar()->height());
|
||||
|
||||
emit main_window->updateMenuResizeOptions();
|
||||
main_window->show();
|
||||
main_window->ui->stackedWidget->switchRenderer((RendererStack::Renderer)vid_api);
|
||||
|
||||
Reference in New Issue
Block a user