Better debug messages for Android app

This commit is contained in:
Gioacchino Mazzurco 2018-01-25 16:20:25 +01:00
parent ac9a8437fa
commit c39b3e5fb7
2 changed files with 5 additions and 4 deletions

View File

@ -160,7 +160,8 @@ QtObject
function startDistantChat (own_gxs_id, gxs_id, name, cb) function startDistantChat (own_gxs_id, gxs_id, name, cb)
{ {
console.log("startDistantChat()") console.log( "startDistantChat(own_gxs_id, gxs_id, name, cb)",
own_gxs_id, gxs_id, name, cb )
chatHelper.gxs_id = gxs_id chatHelper.gxs_id = gxs_id
chatHelper.name = name chatHelper.name = name
chatHelper.cb = cb chatHelper.cb = cb

View File

@ -54,18 +54,18 @@ public slots:
static QString b64AvatarGen (QVariantList onloads, int size) static QString b64AvatarGen (QVariantList onloads, int size)
{ {
qDebug() << "b64AvatarGen(): Generating face Avatar from"; qDebug() << "Generating hash face avatar";
QImage result(size, size, QImage::Format_ARGB32_Premultiplied); QImage result(size, size, QImage::Format_ARGB32_Premultiplied);
QPainter painter(&result); QPainter painter(&result);
int counter = 0; int counter = 0;
for (QVariantList::iterator j = onloads.begin(); j != onloads.end(); j++) for(QVariantList::iterator j = onloads.begin(); j != onloads.end(); ++j)
{ {
QImage image = getImage (":/"+(*j).toString()); QImage image = getImage (":/"+(*j).toString());
painter.drawImage(0, 0, image); // xi, yi is the position for imagei painter.drawImage(0, 0, image); // xi, yi is the position for imagei
counter++; ++counter;
} }
painter.end(); painter.end();