mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
Fix functions and macros using to support both Qt4 and Qt5.
This commit is contained in:
parent
763d8a392f
commit
ce3aac5f9d
51 changed files with 260 additions and 181 deletions
|
@ -58,7 +58,7 @@ QString json::toJson(const QVariant& v) {
|
|||
QString result = "\"";
|
||||
for (int i=0; i<s.size(); ++i) {
|
||||
const QChar ch = s[i];
|
||||
switch(ch.toAscii())
|
||||
switch(ch.toLatin1())
|
||||
{
|
||||
case '\b':
|
||||
result += "\\b";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue