mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 07:17:43 +02:00
CR fixes
This commit is contained in:
parent
c05fe7f0b7
commit
c4d43b3fbc
2 changed files with 2 additions and 2 deletions
|
@ -147,7 +147,7 @@ Windows.Window {
|
||||||
Qt.WindowMaximizeButtonHint |
|
Qt.WindowMaximizeButtonHint |
|
||||||
Qt.WindowMinimizeButtonHint;
|
Qt.WindowMinimizeButtonHint;
|
||||||
// only use the always on top feature for non Windows OS
|
// only use the always on top feature for non Windows OS
|
||||||
if (Qt.platform.os !== "windows" && (flags & Desktop.ALWAYS_ON_TOP) === Desktop.ALWAYS_ON_TOP) {
|
if (Qt.platform.os !== "windows" && (flags & Desktop.ALWAYS_ON_TOP)) {
|
||||||
nativeWindowFlags |= Qt.WindowStaysOnTopHint;
|
nativeWindowFlags |= Qt.WindowStaysOnTopHint;
|
||||||
}
|
}
|
||||||
nativeWindow.flags = nativeWindowFlags;
|
nativeWindow.flags = nativeWindowFlags;
|
||||||
|
|
|
@ -43,7 +43,7 @@ MainWindow::~MainWindow() {
|
||||||
QWindow* MainWindow::findMainWindow() {
|
QWindow* MainWindow::findMainWindow() {
|
||||||
auto windows = qApp->topLevelWindows();
|
auto windows = qApp->topLevelWindows();
|
||||||
QWindow* result = nullptr;
|
QWindow* result = nullptr;
|
||||||
for (auto window : windows) {
|
for (const auto& window : windows) {
|
||||||
if (window->objectName().contains("MainWindow")) {
|
if (window->objectName().contains("MainWindow")) {
|
||||||
result = window;
|
result = window;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue