12345678910111213141516171819202122 |
- #include "themeinfotab.h"
- themeInfoTab::themeInfoTab()
- {
- }
- void themeInfoTab::updateData(QString jsonData)
- {
- //Convert the jsonData var to QJsonObject
- QJsonDocument jsonDataDocument = QJsonDocument::fromJson(jsonData.toUtf8());
- QJsonObject jsonDataDocumentObject = jsonDataDocument.object();
- QString themeName, themeVer, themeDesc;
- themeName = jsonDataDocumentObject.value("themeName").toString();
- themeVer = jsonDataDocumentObject.value("themeVer").toString();
- themeDesc = jsonDataDocumentObject.value("themeDesc").toString();
- emit setTextBox(themeName, themeVer, themeDesc);
- }
|