QCocoaWindow - fix a flag test

NSBorderlessWindowMask is just 0, not the 0-th bit, so testing
styleMask & NSBorderlessWindowMask never works, use
original flags instead.

Change-Id: I47da7b5b7795fce88dec88c948a68197fa428991
Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
bb10
Timur Pocheptsov 2015-02-27 17:34:01 +01:00
parent 8b0fcd8718
commit f7118e7f1b
1 changed files with 1 additions and 1 deletions

View File

@ -877,7 +877,7 @@ void QCocoaWindow::setWindowFlags(Qt::WindowFlags flags)
m_inSetStyleMask = false;
[m_nsWindow setLevel:level];
setWindowShadow(flags);
if (!(styleMask & NSBorderlessWindowMask)) {
if (!(flags & Qt::FramelessWindowHint)) {
setWindowTitle(window()->title());
}