mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-27 00:15:51 -04:00
Clean code
This commit is contained in:
parent
cd2e18f27b
commit
4642f2ab2a
2 changed files with 12 additions and 63 deletions
|
@ -79,18 +79,7 @@ public slots:
|
|||
reader.setFileName(path);
|
||||
QImage image = reader.read();
|
||||
painter.drawImage(0, 0, image); // xi, yi is the position for imagei
|
||||
// if (counter == 0)
|
||||
// {
|
||||
// base = QImage(bg.size(), QImage::Format_ARGB32_Premultiplied);
|
||||
// qDebug() << "FIIIRST ";
|
||||
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
|
||||
// }
|
||||
qDebug() << "iterating through QVariantList ";
|
||||
qDebug() << (*j).toString(); // Print QVariant
|
||||
qDebug() << "Generating face Avatar from: " << (*j).toString(); // Print QVariant
|
||||
counter++;
|
||||
}
|
||||
painter.end();
|
||||
|
@ -104,23 +93,9 @@ public slots:
|
|||
// Get Based 64 image string
|
||||
QString encoded = QString(ba.toBase64());
|
||||
|
||||
qDebug() << "@@@@@ encoded avatar " << encoded ;
|
||||
|
||||
return encoded;
|
||||
|
||||
}
|
||||
|
||||
QImage getImageFromPath (QString localPath)
|
||||
{
|
||||
qDebug() << "getImageFromPath() local path:" << localPath ;
|
||||
|
||||
// Read the image
|
||||
QImageReader reader;
|
||||
reader.setFileName(localPath);
|
||||
QImage image = reader.read();
|
||||
return image;
|
||||
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue