mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
pass format to image reader in QImage stream reading operator
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
63dd907271
commit
0ab33899c3
1 changed files with 1 additions and 1 deletions
|
@ -4351,7 +4351,7 @@ QDataStream &operator>>(QDataStream &s, QImage &image)
|
|||
image = QImage(); // null image
|
||||
return s;
|
||||
}
|
||||
image = QImageReader(s.device(), 0).read();
|
||||
image = QImageReader(s.device(), "png").read();
|
||||
return s;
|
||||
}
|
||||
#endif // QT_NO_DATASTREAM
|
||||
|
|
Loading…
Add table
Reference in a new issue