QmlPuppet: Fix MSVC warning

implicit conversion changes signedness: 'QFlags::Int' (aka 'int') to 'const unsigned int'

Change-Id: I3d906ca079f3f25ceb1e3b8010f0540ae0236081
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Orgad Shaneh
2020-01-15 10:09:13 +02:00
committed by Orgad Shaneh
parent ba20c9134a
commit 833d278dce

View File

@@ -105,7 +105,7 @@ bool Qt5InformationNodeInstanceServer::eventFilter(QObject *, QEvent *event)
case QEvent::KeyPress: {
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);
QPair<int, uint> data = {keyEvent->key(), keyEvent->modifiers()};
QPair<int, int> data = {keyEvent->key(), int(keyEvent->modifiers())};
nodeInstanceClient()->handlePuppetToCreatorCommand({PuppetToCreatorCommand::Key_Pressed,
QVariant::fromValue(data)});
} break;