mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
proper typing of char16_t
This commit is contained in:
parent
d4a49fbf79
commit
384dcfbc36
|
@ -81,7 +81,7 @@ void createMapping()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
quint32 qtKeyToNativeKey(quint32 key)
|
quint32 qtKeyToNativeKey(UniChar key)
|
||||||
{
|
{
|
||||||
createMapping();
|
createMapping();
|
||||||
if (mapping.empty()) {
|
if (mapping.empty()) {
|
||||||
|
@ -341,7 +341,7 @@ quint32 HotkeyWrapper::nativeKey(int key)
|
||||||
return 0x72;
|
return 0x72;
|
||||||
default:;
|
default:;
|
||||||
}
|
}
|
||||||
return MacKeyMapping::qtKeyToNativeKey(QChar(key).toLower().toLatin1());
|
return MacKeyMapping::qtKeyToNativeKey(QChar(key).toLower().unicode());
|
||||||
}
|
}
|
||||||
|
|
||||||
void HotkeyWrapper::sendCmdC()
|
void HotkeyWrapper::sendCmdC()
|
||||||
|
|
Loading…
Reference in a new issue