Sun, 22 Sep 2019 11:51:41 +0300
Added lots of code
#include "uuid.h" #include <QIODevice> void uuidToString(const Uuid &uuid, QTextStream &stream) { stream << "0x"; stream << QString::number(uuid.a, 16); stream << QString::number(uuid.b, 16); } void incrementUuid(Uuid &uuid) { if (uuid.b == std::numeric_limits<decltype(uuid.b)>::max()) { uuid.a += 1; uuid.b = 0; } else { uuid.b += 1; } }