Update qt_specifydimensions.cpp
This commit is contained in:
@@ -79,8 +79,10 @@ void SpecifyDimensions::on_SpecifyDimensions_accepted()
|
|||||||
main_window->renderers[i]->setWindowFlag(Qt::WindowMaximizeButtonHint, false);
|
main_window->renderers[i]->setWindowFlag(Qt::WindowMaximizeButtonHint, false);
|
||||||
main_window->renderers[i]->setWindowFlag(Qt::MSWindowsFixedSizeDialogHint);
|
main_window->renderers[i]->setWindowFlag(Qt::MSWindowsFixedSizeDialogHint);
|
||||||
emit main_window->resizeContentsMonitor(fixed_size_x, fixed_size_y, i);
|
emit main_window->resizeContentsMonitor(fixed_size_x, fixed_size_y, i);
|
||||||
if (show_second_monitors) main_window->renderers[i]->show();
|
if (show_second_monitors) {
|
||||||
main_window->renderers[i]->switchRenderer((RendererStack::Renderer)vid_api);
|
main_window->renderers[i]->show();
|
||||||
|
main_window->renderers[i]->switchRenderer((RendererStack::Renderer)vid_api);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
main_window->ui->stackedWidget->switchRenderer((RendererStack::Renderer)vid_api);
|
main_window->ui->stackedWidget->switchRenderer((RendererStack::Renderer)vid_api);
|
||||||
@@ -102,8 +104,8 @@ void SpecifyDimensions::on_SpecifyDimensions_accepted()
|
|||||||
main_window->renderers[i]->setWindowFlag(Qt::MSWindowsFixedSizeDialogHint, false);
|
main_window->renderers[i]->setWindowFlag(Qt::MSWindowsFixedSizeDialogHint, false);
|
||||||
emit main_window->resizeContentsMonitor(ui->spinBoxWidth->value(), ui->spinBoxHeight->value(), i);
|
emit main_window->resizeContentsMonitor(ui->spinBoxWidth->value(), ui->spinBoxHeight->value(), i);
|
||||||
main_window->renderers[i]->setFixedSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
|
main_window->renderers[i]->setFixedSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX);
|
||||||
if (show_second_monitors) main_window->renderers[i]->show();
|
if (show_second_monitors) { main_window->renderers[i]->show();
|
||||||
main_window->renderers[i]->switchRenderer((RendererStack::Renderer)vid_api);
|
main_window->renderers[i]->switchRenderer((RendererStack::Renderer)vid_api); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
vid_resize = 1;
|
vid_resize = 1;
|
||||||
|
Reference in New Issue
Block a user