WindowsKeyMapper: Fix unsigned/signed mismatch error
error C2220: the following warning is treated as an error warning C4018: '>': signed/unsigned mismatch Pick-to: 6.2 6.4 Change-Id: I4ba59f3aa6bbd7b37fe469e6271df207a7d11c99 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
parent
bbbc952d01
commit
9e7f91781d
@ -1387,7 +1387,7 @@ QList<int> QWindowsKeyMapper::possibleKeys(const QKeyEvent *e) const
|
||||
// Shift+9 over Alt + Shift + 9) resulting in more missing modifiers.
|
||||
if (it == result.end())
|
||||
result << matchedKey;
|
||||
else if (missingMods > (*it & Qt::KeyboardModifierMask))
|
||||
else if (missingMods > Qt::KeyboardModifiers(*it & Qt::KeyboardModifierMask))
|
||||
*it = matchedKey;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user