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
parent
a7df98a9a7
commit
2c9bd677ab
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue