--- a/src/types.h Fri Jun 05 18:33:51 2015 +0300 +++ b/src/types.h Fri Jun 05 19:13:44 2015 +0300 @@ -54,6 +54,14 @@ bool isRelease; }; -Q_DECLARE_METATYPE (ZandronumVersion) -typedef QList<ZandronumVersion> VersionList; +inline QDataStream& operator<< (QDataStream& out, const ZandronumVersion& version) +{ + return (out << version.name << version.binaryPath << version.isRelease); +} +inline QDataStream& operator>> (QDataStream& in, ZandronumVersion& version) +{ + return (in >> version.name >> version.binaryPath >> version.isRelease); +} + +Q_DECLARE_METATYPE (ZandronumVersion) \ No newline at end of file