Add helper fromatJsonString()

obs_data_get_json() will now dump the json data in JSON_COMPACT format
which makes it rather difficult to read.
This commit is contained in:
WarmUpTill
2021-06-17 21:30:06 +02:00
committed by WarmUpTill
parent 0975ffabfa
commit baa158bb33
2 changed files with 14 additions and 0 deletions

View File

@@ -28,6 +28,8 @@ bool compareSourceSettings(const OBSWeakSource &source,
std::vector<obs_scene_item *> getSceneItemsWithName(OBSScene scene,
std::string &name);
std::string getDataFilePath(const std::string &file);
QString fromatJsonString(std::string);
QString fromatJsonString(const char *);
/**
* Populate layout with labels and widgets based on provided text