Skip to content

Commit

Permalink
Make QCryptographicHash a Q_GADGET.
Browse files Browse the repository at this point in the history
This makes the hash algorithm play nicely with qDebug.

Change-Id: I6db651cd5c73e8be65442dd68d6b865dcb975f4c
Reviewed-by: Olivier Goffart (Woboq GmbH) <[email protected]>
  • Loading branch information
richmoore authored and misery committed Jun 7, 2016
1 parent 1f8a2ff commit b6d0c12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/corelib/tools/qcryptographichash.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#define QCRYPTOGRAPHICHASH_H

#include <QtCore/qbytearray.h>
#include <QtCore/qobjectdefs.h>

QT_BEGIN_NAMESPACE

Expand All @@ -51,6 +52,7 @@ class QIODevice;

class Q_CORE_EXPORT QCryptographicHash
{
Q_GADGET
public:
enum Algorithm {
#ifndef QT_CRYPTOGRAPHICHASH_ONLY_SHA1
Expand All @@ -69,6 +71,7 @@ class Q_CORE_EXPORT QCryptographicHash
Sha3_512
#endif
};
Q_ENUM(Algorithm)

explicit QCryptographicHash(Algorithm method);
~QCryptographicHash();
Expand Down

0 comments on commit b6d0c12

Please sign in to comment.