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:
Mårten Nordheim 2022-09-29 14:25:54 +02:00
parent bbbc952d01
commit 9e7f91781d

View File

@ -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;
}
}