Browse Source

replaced Q_ENUMS with Q_ENUM

Malte Veerman 7 năm trước cách đây
mục cha
commit
04981610c8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      import/src/pwmfan.h

+ 1 - 1
import/src/pwmfan.h

@@ -51,7 +51,6 @@ class PwmFan : public Fan
     Q_PROPERTY(bool testing READ testing NOTIFY testStatusChanged)
     Q_PROPERTY(TestStatus testStatus READ testStatus NOTIFY testStatusChanged)
     Q_PROPERTY(int pwmEnable READ pwmEnable WRITE setPwmEnable NOTIFY pwmEnableChanged)
-    Q_ENUMS(TestStatus)
 
 public:
 
@@ -65,6 +64,7 @@ public:
         Cancelled,
         Error
     };
+    Q_ENUM(TestStatus)
 
     explicit PwmFan(uint index, Hwmon *parent = Q_NULLPTR);
     virtual ~PwmFan();