blob: a470ce7c783b5f6e9e43c1b18fe0b297ae43c769 (
plain)
1
2
3
4
5
6
|
#include "mp_simple_types.h"
QDataStream &operator <<(QDataStream &s, const EnumClass &ec)
{ s << (Q_UINT8)ec.f; return s; }
QDataStream &operator >>(QDataStream &s, EnumClass &ec)
{ Q_UINT8 t; s >> t; ec.f = (int)t; return s; }
|