Ref T747, combine "on top" with window to front

This commit is contained in:
Klaus Basan
2019-11-03 21:22:55 +01:00
committed by Mat Sutcliffe
parent 336ad1c160
commit 109827b5c4
2 changed files with 19 additions and 5 deletions

View File

@@ -512,7 +512,7 @@ namespace BlackGui
flags |= Qt::WindowStaysOnTopHint;
}
widget->setWindowFlags(flags);
widget->show();
widget->show(); // without that the window sometimes just disappears
return Qt::WindowStaysOnTopHint & flags;
}
@@ -531,6 +531,7 @@ namespace BlackGui
// flags |= Qt::WindowStaysOnBottomHint;
}
widget->setWindowFlags(flags);
widget->show(); // without that the window sometimes just disappears
return onTop;
}
@@ -552,7 +553,7 @@ namespace BlackGui
Q_ASSERT_X(ok, Q_FUNC_INFO, "malformed number");
const int b = parts.at(3).toInt(&ok);
Q_ASSERT_X(ok, Q_FUNC_INFO, "malformed number");
Q_UNUSED(ok);
Q_UNUSED(ok)
return QMargins(l, t, r, b);
}