Allow compile with Qt 5.5 again
This commit is contained in:
@@ -247,7 +247,11 @@ bool StretchHeaderView::RestoreState(const QByteArray& data) {
|
||||
|
||||
QDataStream s(data);
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
|
||||
s.setVersion(QDataStream::Qt_5_5);
|
||||
#else
|
||||
s.setVersion(QDataStream::Qt_5_6);
|
||||
#endif
|
||||
|
||||
int magic_number = 0;
|
||||
s >> magic_number;
|
||||
@@ -311,7 +315,11 @@ QByteArray StretchHeaderView::SaveState() const {
|
||||
visual_indices << logicalIndex(i);
|
||||
}
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
|
||||
s.setVersion(QDataStream::Qt_5_5);
|
||||
#else
|
||||
s.setVersion(QDataStream::Qt_5_6);
|
||||
#endif
|
||||
|
||||
s << kMagicNumber;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user