}
QPixmap p = icon.pixmap(32, 32);
QImage i = p.toImage();
i.save(buffer, filetype.toUpperCase());
buffer.close();
QByteArray b = new QByteArray(buffer.buffer());
if (!b.isNull() && !b.isEmpty())
query.bindValue(":icon", b.toByteArray());
else
return;
}