mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-23 14:11:44 +01:00
Set data stream versions.
This commit is contained in:
parent
f6ce1926c0
commit
4ffab88435
@ -37,6 +37,7 @@ QIcon IconFactory::fromByteArray(QByteArray array) {
|
|||||||
buffer.open(QIODevice::ReadOnly);
|
buffer.open(QIODevice::ReadOnly);
|
||||||
|
|
||||||
QDataStream in(&buffer);
|
QDataStream in(&buffer);
|
||||||
|
in.setVersion(QDataStream::Qt_4_7);
|
||||||
in >> icon;
|
in >> icon;
|
||||||
|
|
||||||
buffer.close();
|
buffer.close();
|
||||||
@ -49,6 +50,7 @@ QByteArray IconFactory::toByteArray(const QIcon &icon) {
|
|||||||
buffer.open(QIODevice::WriteOnly);
|
buffer.open(QIODevice::WriteOnly);
|
||||||
|
|
||||||
QDataStream out(&buffer);
|
QDataStream out(&buffer);
|
||||||
|
out.setVersion(QDataStream::Qt_4_7);
|
||||||
out << icon;
|
out << icon;
|
||||||
|
|
||||||
buffer.close();
|
buffer.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user