| 101 | } |
| 102 | |
| 103 | QString unquote(QString str) |
| 104 | { |
| 105 | if ((str.contains(QChar(';')) || str.contains(QChar('=')) || str.contains(QChar(','))) && str.endsWith("\"") && str.startsWith("\"")) { |
| 106 | #if QT_VERSION < QT_VERSION_CHECK(6, 5, 0) |
| 107 | str = str.remove(0, 1); |
| 108 | str = str.remove(str.size() - 1, 1); |
| 109 | #else |
| 110 | str = str.removeFirst().removeLast(); |
| 111 | #endif |
| 112 | } |
| 113 | return str; |
| 114 | } |
| 115 | |
| 116 | bool parseOldFileFormat(QIODevice& device, QSettings::SettingsMap& map) |
| 117 | { |
no test coverage detected