From b6d0c127f8d9aea78c3537ca134e8849d2b9ea73 Mon Sep 17 00:00:00 2001 From: "Richard J. Moore" Date: Thu, 30 Jul 2015 21:42:45 +0100 Subject: Make QCryptographicHash a Q_GADGET. This makes the hash algorithm play nicely with qDebug. Change-Id: I6db651cd5c73e8be65442dd68d6b865dcb975f4c Reviewed-by: Olivier Goffart (Woboq GmbH) --- src/corelib/tools/qcryptographichash.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/corelib/tools/qcryptographichash.h b/src/corelib/tools/qcryptographichash.h index a19c734768..0f17baa036 100644 --- a/src/corelib/tools/qcryptographichash.h +++ b/src/corelib/tools/qcryptographichash.h @@ -42,6 +42,7 @@ #define QCRYPTOGRAPHICHASH_H #include +#include QT_BEGIN_NAMESPACE @@ -51,6 +52,7 @@ class QIODevice; class Q_CORE_EXPORT QCryptographicHash { + Q_GADGET public: enum Algorithm { #ifndef QT_CRYPTOGRAPHICHASH_ONLY_SHA1 @@ -69,6 +71,7 @@ public: Sha3_512 #endif }; + Q_ENUM(Algorithm) explicit QCryptographicHash(Algorithm method); ~QCryptographicHash(); -- cgit v1.2.3