Add toHex function to Uuid.
This commit is contained in:
@@ -44,6 +44,11 @@ QString Uuid::toBase64() const
|
||||
return m_data.toBase64();
|
||||
}
|
||||
|
||||
QString Uuid::toHex() const
|
||||
{
|
||||
return m_data.toHex();
|
||||
}
|
||||
|
||||
QByteArray Uuid::toByteArray() const
|
||||
{
|
||||
return m_data;
|
||||
|
||||
@@ -28,7 +28,9 @@ public:
|
||||
explicit Uuid(const QByteArray& data);
|
||||
static Uuid random();
|
||||
QString toBase64() const;
|
||||
QString toHex() const;
|
||||
QByteArray toByteArray() const;
|
||||
|
||||
bool isNull() const;
|
||||
Uuid& operator=(const Uuid& other);
|
||||
bool operator==(const Uuid& other) const;
|
||||
|
||||
Reference in New Issue
Block a user