Convert JSON values by type, except events

This commit is contained in:
GriffinR
2022-10-14 18:55:18 -04:00
parent 239f3935bf
commit 6ffcb58e5e
7 changed files with 134 additions and 82 deletions

View File

@@ -71,7 +71,11 @@ public:
static QString removeLineComments(QString text, const QStringList &commentSymbols);
static QStringList splitShellCommand(QStringView command);
static int gameStringToInt(QString gameString, bool * ok = nullptr);
static bool gameStringToBool(QString gameString, bool * ok = nullptr);
static QString jsonToQString(QJsonValue value, bool * ok = nullptr);
static int jsonToInt(QJsonValue value, bool * ok = nullptr);
static bool jsonToBool(QJsonValue value, bool * ok = nullptr);
private:
QString root;