瀏覽代碼

replaced Q_ENUMS with Q_ENUM

Malte Veerman 7 年之前
父節點
當前提交
04981610c8
共有 1 個文件被更改,包括 1 次插入1 次删除
  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();