mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-05 11:54:59 -04:00
Add toHex function to Uuid.
This commit is contained in:
parent
d218924b4f
commit
4ec9df76cd
2 changed files with 7 additions and 0 deletions
|
@ -44,6 +44,11 @@ QString Uuid::toBase64() const
|
||||||
return m_data.toBase64();
|
return m_data.toBase64();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString Uuid::toHex() const
|
||||||
|
{
|
||||||
|
return m_data.toHex();
|
||||||
|
}
|
||||||
|
|
||||||
QByteArray Uuid::toByteArray() const
|
QByteArray Uuid::toByteArray() const
|
||||||
{
|
{
|
||||||
return m_data;
|
return m_data;
|
||||||
|
|
|
@ -28,7 +28,9 @@ public:
|
||||||
explicit Uuid(const QByteArray& data);
|
explicit Uuid(const QByteArray& data);
|
||||||
static Uuid random();
|
static Uuid random();
|
||||||
QString toBase64() const;
|
QString toBase64() const;
|
||||||
|
QString toHex() const;
|
||||||
QByteArray toByteArray() const;
|
QByteArray toByteArray() const;
|
||||||
|
|
||||||
bool isNull() const;
|
bool isNull() const;
|
||||||
Uuid& operator=(const Uuid& other);
|
Uuid& operator=(const Uuid& other);
|
||||||
bool operator==(const Uuid& other) const;
|
bool operator==(const Uuid& other) const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue