Windows: Clean Qt::WindowFullscreenButtonHint in fixTopLevelWindowFlags().
Do the correction of top level window flags also in case Qt::Window|Qt::WindowFullscreenButtonHint is passed, since it is not supported by the platform anyways. Task-number: QTBUG-31111 Change-Id: If035d7086e48174873b6b91acf90f730ea40b5a8 Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
This commit is contained in:
parent
bd1f5b268a
commit
a0e5210d8b
@ -438,6 +438,8 @@ QDebug operator<<(QDebug debug, const WindowCreationData &d)
|
|||||||
// Fix top level window flags in case only the type flags are passed.
|
// Fix top level window flags in case only the type flags are passed.
|
||||||
static inline void fixTopLevelWindowFlags(Qt::WindowFlags &flags)
|
static inline void fixTopLevelWindowFlags(Qt::WindowFlags &flags)
|
||||||
{
|
{
|
||||||
|
// Not supported on Windows, also do correction when it is set.
|
||||||
|
flags &= ~Qt::WindowFullscreenButtonHint;
|
||||||
switch (flags) {
|
switch (flags) {
|
||||||
case Qt::Window:
|
case Qt::Window:
|
||||||
flags |= Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinimizeButtonHint
|
flags |= Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMinimizeButtonHint
|
||||||
|
Loading…
x
Reference in New Issue
Block a user