Clean code

This commit is contained in:
Angela Mazzurco 2017-09-11 16:42:29 +02:00
parent cd2e18f27b
commit 4642f2ab2a
2 changed files with 12 additions and 63 deletions

View file

@ -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;
}
};