QJson::Parser parser;
bool ok;
- QVariantMap result;
- QByteArray jsonDummy;
- QFile temp("generated_json.txt");
- if(temp.open(QIODevice::ReadOnly)) {
- jsonDummy = temp.readAll();
- temp.close();
- result = parser.parse (jsonDummy, &ok).toMap();
- } else
- result = parser.parse (jsonReply, &ok).toMap();
-
-
- //QVariantMap result = parser.parse (jsonReply, &ok).toMap();
+ QVariantMap result = parser.parse (jsonReply, &ok).toMap();
if (!ok) {
emit error(ErrorContext::SITUARE, SituareError::INVALID_JSON);
return;
if (!m_friendListNameRegExp.isEmpty())
m_friendListView->filter(m_friendListNameRegExp);
+ else
+ m_friendListView->clearFilter();
}
void FriendListPanel::locationDataReady(QList<Location> &result)