mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 08:29:32 -05:00
Better debug messages for Android app
This commit is contained in:
parent
ac9a8437fa
commit
c39b3e5fb7
@ -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
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user