mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
refs #354, initial cleanup of cfg entries samples / code before adding new functionality
* fixed styles such as copyright headers * use text stream instead of qDebug() for output * int instead of qint * misc. smaller tweaks * extended the JSON example (special chars). JSON might be used to "cache" the FSX entries
This commit is contained in:
@@ -84,9 +84,18 @@ namespace BlackMiscTest
|
||||
stations.clear();
|
||||
stations.convertFromJson(json);
|
||||
qDebug() << stations;
|
||||
|
||||
qDebug() << "------- Enter -----";
|
||||
cin.readLine();
|
||||
|
||||
// testing escaping special characters
|
||||
CUser specialCharacters("123456", "With quote \"", "With double quote\"\"", "foobar");
|
||||
json = specialCharacters.toJson();
|
||||
doc.setObject(json);
|
||||
qDebug() << doc.toJson(QJsonDocument::Indented);
|
||||
|
||||
qDebug() << "------- Enter ---------------------------------";
|
||||
cin.readLine();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user