diff --git a/src/network/access/qnetworkaccessmanager.h b/src/network/access/qnetworkaccessmanager.h
index 4ce47577c8..cba5cc09d6 100644
--- a/src/network/access/qnetworkaccessmanager.h
+++ b/src/network/access/qnetworkaccessmanager.h
@@ -94,6 +94,7 @@ public:
         NotAccessible = 0,
         Accessible = 1
     };
+    Q_ENUM(NetworkAccessibility)
 #endif
 
     explicit QNetworkAccessManager(QObject *parent = Q_NULLPTR);