mirror of
https://github.com/qt/qtmqtt.git
synced 2026-10-25 16:16:26 +00:00
Replace Q_ENUMS with Q_ENUM
Amendsea3dc64d3f,7467bbdc84, andea0d792a44(all before 6.0). Fixes: QTBUG-148625 Pick-to: 6.12 6.11 6.8 Change-Id: I2f9b24f7e32d437cce258dfdce0d669c8d2638e1 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
14de26f60b
commit
ebd3d87293
@ -69,9 +69,6 @@ public:
|
||||
|
||||
private:
|
||||
Q_OBJECT
|
||||
Q_ENUMS(ClientState)
|
||||
Q_ENUMS(ClientError)
|
||||
Q_ENUMS(ProtocolVersion)
|
||||
Q_PROPERTY(QString clientId READ clientId WRITE setClientId NOTIFY clientIdChanged)
|
||||
Q_PROPERTY(QString hostname READ hostname WRITE setHostname NOTIFY hostnameChanged)
|
||||
Q_PROPERTY(quint16 port READ port WRITE setPort NOTIFY portChanged)
|
||||
|
||||
@ -19,7 +19,6 @@ class QMqttSubscriptionPrivate;
|
||||
class Q_MQTT_EXPORT QMqttSubscription : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_ENUMS(SubscriptionState)
|
||||
Q_PROPERTY(SubscriptionState state READ state NOTIFY stateChanged)
|
||||
Q_PROPERTY(quint8 qos READ qos NOTIFY qosChanged)
|
||||
Q_PROPERTY(QMqttTopicFilter topic READ topic)
|
||||
@ -36,6 +35,7 @@ public:
|
||||
UnsubscriptionPending,
|
||||
Error
|
||||
};
|
||||
Q_ENUM(SubscriptionState)
|
||||
|
||||
SubscriptionState state() const;
|
||||
QMqttTopicFilter topic() const;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user