diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2017-03-20 23:30:42 +0100 |
---|---|---|
committer | Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com> | 2017-03-21 07:08:47 +0000 |
commit | 464c0a5824191a33318a5d09f0fb7a8b9c645eb1 (patch) | |
tree | 4929cd1c5f9bca9f390cab1823f78b8704405ff5 /src/gui/kernel/qcursor.h | |
parent | 5707528be0eb10d7498e9f2b4523ac9a11f92527 (diff) |
Windows QPA: Fix MinGW developer build
Fix warning:
qwindowswindow.cpp: In member function 'void QWindowsWindow::setWindowState_sys(Qt::WindowStates)':
qwindowswindow.cpp:1965:74: error: suggest parentheses around arithmetic in operand of '^' [-Werror=parentheses]
if ((newState & Qt::WindowMinimized) && (oldState ^ newState & Qt::WindowMaximized))
This is actually a real bug. What was meant was to check if the Maximized flag
was changed. This code path is for the case in which the windows becomes
minimized, and the maximized state changed.
Amends change a02959bb5b43a3f9d881e5213ceedf535202b6a1.
Task-number: QTBUG-57882
Change-Id: I1cd32a7080240e4462d3cd4f129c6c1a08409996
Reviewed-by: Robin Burchell <robin.burchell@crimson.no>
Diffstat (limited to 'src/gui/kernel/qcursor.h')
0 files changed, 0 insertions, 0 deletions