Make QSslError::SslError a Q_ENUM

This avoids error prone manual mappings when having to persist such values,
as eg. done in https://cgit.kde.org/kio.git/tree/src/kssld/kssld.cpp#n49.

Change-Id: Ib279c116a10ce8edc0b686b8b80cbd848b4b410e
Reviewed-by: David Faure <david.faure@kdab.com>
bb10
Volker Krause 2019-10-15 18:56:36 +02:00
parent a7df98a9a7
commit 2c9bd677ab
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,7 @@ QT_BEGIN_NAMESPACE
class QSslErrorPrivate;
class Q_NETWORK_EXPORT QSslError
{
Q_GADGET
public:
enum SslError {
NoError,
@ -94,6 +95,7 @@ public:
OcspStatusUnknown,
UnspecifiedError = -1
};
Q_ENUM(SslError)
// RVCT compiler in debug build does not like about default values in const-
// So as an workaround we define all constructor overloads here explicitly