QVncClient: fix an int -> QChar conversion
It was masked by all QChar ctors being made explicit, except the char16_t one, which was left as the only viable choice. Change-Id: I68da90730de0a7bdcd0825b4557b8534fbda2533 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
928d57d8da
commit
a34fa92c29
@ -617,7 +617,7 @@ void QVncClient::keyEvent()
|
|||||||
m_keymod = ev.down ? m_keymod | Qt::AltModifier :
|
m_keymod = ev.down ? m_keymod | Qt::AltModifier :
|
||||||
m_keymod & ~Qt::AltModifier;
|
m_keymod & ~Qt::AltModifier;
|
||||||
if (ev.unicode || ev.keycode)
|
if (ev.unicode || ev.keycode)
|
||||||
QWindowSystemInterface::handleKeyEvent(nullptr, ev.down ? QEvent::KeyPress : QEvent::KeyRelease, ev.keycode, m_keymod, QString(ev.unicode));
|
QWindowSystemInterface::handleKeyEvent(nullptr, ev.down ? QEvent::KeyPress : QEvent::KeyRelease, ev.keycode, m_keymod, QString(QChar::fromUcs2(ev.unicode)));
|
||||||
m_handleMsg = false;
|
m_handleMsg = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user