add Area Location String to PictureDialog
This commit is contained in:
parent
5dc3e72faf
commit
043c657119
9 changed files with 133 additions and 9 deletions
|
@ -55,6 +55,7 @@ SnapmaticPicture::SnapmaticPicture(const QString &fileName, QObject *parent) : Q
|
|||
jsonLocY = 0;
|
||||
jsonLocZ = 0;
|
||||
jsonCrewID = 0;
|
||||
jsonArea = "";
|
||||
jsonPlyrsList = QStringList();
|
||||
}
|
||||
|
||||
|
@ -333,6 +334,10 @@ void SnapmaticPicture::parseJsonContent()
|
|||
if (locMap.contains("y")) { jsonLocY = locMap["y"].toDouble(); }
|
||||
if (locMap.contains("z")) { jsonLocZ = locMap["z"].toDouble(); }
|
||||
}
|
||||
if (jsonMap.contains("area"))
|
||||
{
|
||||
jsonArea = jsonMap["area"].toString();
|
||||
}
|
||||
if (jsonMap.contains("crewid"))
|
||||
{
|
||||
jsonCrewID = jsonMap["crewid"].toInt();
|
||||
|
@ -350,6 +355,11 @@ bool SnapmaticPicture::isJsonOk()
|
|||
return jsonOk;
|
||||
}
|
||||
|
||||
QString SnapmaticPicture::getArea()
|
||||
{
|
||||
return jsonArea;
|
||||
}
|
||||
|
||||
QString SnapmaticPicture::getJsonStr()
|
||||
{
|
||||
return jsonStr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue