Qtification "lite" - first round

This commit is contained in:
miodragpop
2020-06-15 13:11:39 +02:00
parent efa216a131
commit e20efde2ed
29 changed files with 859 additions and 19772 deletions

View File

@@ -184,17 +184,17 @@ QString ChatItem::toChatLine()
return line;
}
json ChatItem::toJson()
QJsonValue ChatItem::toJson()
{
json j;
j["_timestamp"] = _timestamp;
j["_address"] = _address.toStdString();
j["_contact"] = _contact.toStdString();
j["_memo"] = _memo.toStdString();
j["_requestZaddr"] = _requestZaddr.toStdString();
j["_type"] = _type.toStdString();
j["_cid"] = _cid.toStdString();
j["_txid"] = _txid.toStdString();
QJsonObject j;
j["_timestamp"] = (qint64)_timestamp;
j["_address"] = _address;
j["_contact"] = _contact;
j["_memo"] = _memo;
j["_requestZaddr"] = _requestZaddr;
j["_type"] = _type;
j["_cid"] = _cid;
j["_txid"] = _txid;
j["_confirmations"] = _confirmations;
j["_outgoing"] = _outgoing;
return j;
@@ -203,4 +203,4 @@ json ChatItem::toJson()
ChatItem::~ChatItem()
{
}
}