mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
QRCode: Use UTF8 chars for code generation
QString.append() expects UTF8 chars, but this is not standard on all platforms.
This commit is contained in:
parent
d6b1c68285
commit
0ead759364
@ -80,9 +80,9 @@ void printServerInfo(YACReaderHttpServer *httpServer)
|
||||
for (int x = -border - 1; x < code.getSize() + border + 1; x++) {
|
||||
QRCodeString.append((code.getModule(x, y) && code.getModule(x, y + 1))
|
||||
? " "
|
||||
: code.getModule(x, y + 1) ? "\u2580"
|
||||
: code.getModule(x, y) ? "\u2584"
|
||||
: "\u2588");
|
||||
: code.getModule(x, y + 1) ? u8"\u2580"
|
||||
: code.getModule(x, y) ? u8"\u2584"
|
||||
: u8"\u2588");
|
||||
}
|
||||
QLOG_INFO() << QRCodeString;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user