Less verbosity: commented lots of QDebugs
This commit is contained in:
parent
158e32adcf
commit
8e295ee364
1 changed files with 6 additions and 5 deletions
|
@ -90,7 +90,6 @@ QByteArray NetworkPackage::serialize() const
|
||||||
|
|
||||||
bool NetworkPackage::unserialize(const QByteArray& a, NetworkPackage* np)
|
bool NetworkPackage::unserialize(const QByteArray& a, NetworkPackage* np)
|
||||||
{
|
{
|
||||||
//qDebug() << "Unserialize: " << a;
|
|
||||||
|
|
||||||
//Json -> QVariant
|
//Json -> QVariant
|
||||||
QJson::Parser parser;
|
QJson::Parser parser;
|
||||||
|
@ -102,12 +101,14 @@ bool NetworkPackage::unserialize(const QByteArray& a, NetworkPackage* np)
|
||||||
}
|
}
|
||||||
|
|
||||||
//QVariant -> Object
|
//QVariant -> Object
|
||||||
QJson::QObjectHelper::qvariant2qobject(variant,np);
|
QJson::QObjectHelper::qvariant2qobject(variant, np);
|
||||||
|
|
||||||
|
if (!np->isEncrypted()) {
|
||||||
|
//qDebug() << "Serialized package:" << a;
|
||||||
|
}
|
||||||
|
|
||||||
if (variant.contains("payloadTransferInfo")) {
|
if (variant.contains("payloadTransferInfo")) {
|
||||||
if (!np->isEncrypted()) {
|
//qDebug() << "Unserializing payloadTransferInfo";
|
||||||
//qDebug() << "Unserializing payloadTransferInfo";
|
|
||||||
}
|
|
||||||
np->mPayloadTransferInfo = variant["payloadTransferInfo"].toMap();
|
np->mPayloadTransferInfo = variant["payloadTransferInfo"].toMap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue