mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-23 06:07:39 +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);
|
||||
|
||||
QDataStream in(&buffer);
|
||||
in.setVersion(QDataStream::Qt_4_7);
|
||||
in >> icon;
|
||||
|
||||
buffer.close();
|
||||
@ -49,6 +50,7 @@ QByteArray IconFactory::toByteArray(const QIcon &icon) {
|
||||
buffer.open(QIODevice::WriteOnly);
|
||||
|
||||
QDataStream out(&buffer);
|
||||
out.setVersion(QDataStream::Qt_4_7);
|
||||
out << icon;
|
||||
|
||||
buffer.close();
|
||||
|
Loading…
Reference in New Issue
Block a user