Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jared2020 committed Dec 4, 2024
1 parent 0088fa2 commit 6c95628
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 3rdparty/TaoCommon/src/TaoCommon/Common/PropertyHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ class AppInfo : public QObject
*/
// 可读可写 属性。属性set函数 提升为 slot ,可被 invok / qml 调用
// 可读可写 属性。属性set函数 提升为 slot ,可被 invok / qml 调用.
// V2去掉了 signal的定义部分,外面用的地方额外定义一下 signal 部分。
// visual studio解决方案中存在无法通过 Q_SIGNAL 生成signal的情况,所以有了V2
#define AUTO_PROPERTY_V2(T, NAME, InitValue) \
private: \
Q_PROPERTY(T NAME READ NAME WRITE set_##NAME NOTIFY NAME##Changed) \
Expand Down

0 comments on commit 6c95628

Please sign in to comment.