mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 23:05:34 +08:00
QDataStream has operators for enums since Qt 5.14
This commit is contained in:
@@ -91,6 +91,7 @@ namespace BlackMisc
|
||||
}
|
||||
}
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
|
||||
/*!
|
||||
* Operator for marshalling enums with QDataStream.
|
||||
*/
|
||||
@@ -111,6 +112,7 @@ QDataStream &operator >>(QDataStream &stream, E &value)
|
||||
value = static_cast<E>(temp);
|
||||
return stream;
|
||||
}
|
||||
#endif // Qt < 5.14.0
|
||||
|
||||
/*!
|
||||
* Operator for marshalling pairs with QDataStream.
|
||||
|
||||
Reference in New Issue
Block a user