mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-05 01:35:45 +08:00
Ref T404, fixed the UTF issues for hotkeys
* QStringLiteral expects UTF16 for MSVC compilers * we use descriptive names now * UTF flag for MSVC compilers * added the SLACK discussion as comment under https://dev.swift-project.org/T404
This commit is contained in:
@@ -70,6 +70,14 @@ contains(BLACK_CONFIG, ProfileRelease) {
|
||||
|
||||
msvc:!llvm: QMAKE_CXXFLAGS *= /bigobj
|
||||
|
||||
################################
|
||||
# Force UTF-8 source code in MSVC
|
||||
################################
|
||||
|
||||
msvc: QMAKE_CXXFLAGS *= /utf-8
|
||||
# msvc: QMAKE_CXXFLAGS *= /source-charset:utf-8
|
||||
# /utf-8 sets both the source charset and execution charset to UTF-8
|
||||
|
||||
################################
|
||||
# No gigantic MinGW obj files
|
||||
################################
|
||||
|
||||
@@ -57,8 +57,8 @@ namespace BlackMisc
|
||||
|
||||
switch (m_keyCode)
|
||||
{
|
||||
case Key_Multiply: return QStringLiteral("×");
|
||||
case Key_Divide: return QStringLiteral("÷");
|
||||
case Key_Multiply: return QStringLiteral("NumMultiply"); // return QStringLiteral(u"×");
|
||||
case Key_Divide: return QStringLiteral("NumDivide"); // return QStringLiteral(u"÷");
|
||||
case Key_Numpad0: return QStringLiteral("Num0");
|
||||
case Key_Numpad1: return QStringLiteral("Num1");
|
||||
case Key_Numpad2: return QStringLiteral("Num2");
|
||||
|
||||
Reference in New Issue
Block a user