WindowsKeyMapper: Fix unsigned/signed mismatch error
error C2220: the following warning is treated as an error warning C4018: '>': signed/unsigned mismatch Change-Id: I4ba59f3aa6bbd7b37fe469e6271df207a7d11c99 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> (cherry picked from commit 9e7f91781d41ba588efac695c74e5304ec15625d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
ff8beb27a5
commit
ff650e6252
@ -1388,7 +1388,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…
x
Reference in New Issue
Block a user