Add file uploading
This commit is contained in:
parent
0bb4885632
commit
a31d3d0816
17 changed files with 475 additions and 318 deletions
|
|
@ -677,9 +677,10 @@ utils::restoreCombobox(QComboBox *combo, const QString &value)
|
|||
}
|
||||
|
||||
QImage
|
||||
utils::readImage(QByteArray *data)
|
||||
utils::readImage(const QByteArray *data)
|
||||
{
|
||||
QBuffer buf(data);
|
||||
QBuffer buf;
|
||||
buf.setData(*data);
|
||||
QImageReader reader(&buf);
|
||||
reader.setAutoTransform(true);
|
||||
return reader.read();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue