qt: Add option to apply fullscreen stretching modes when maximized

This commit is contained in:
Cacodemon345
2022-08-10 01:27:54 +06:00
parent f70102c529
commit dd23397854
16 changed files with 69 additions and 4 deletions

View File

@@ -397,6 +397,7 @@ RendererStack::createRenderer(Renderer renderer)
if (current.get() == nullptr) return;
current->setFocusPolicy(Qt::NoFocus);
current->setFocusProxy(this);
current->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
addWidget(current.get());
this->setStyleSheet("background-color: black");