mirror of
https://gitlab.com/spaceti-app/integrations/common/server-sdk.git
synced 2026-07-12 19:10:49 +02:00
Merge branch 'improve/make-property-const-ref' into 'master'
const ref in table_property set function See merge request spaceti-app/integrations/common/server-sdk!17
This commit is contained in:
commit
b956a97cd7
@ -11,7 +11,7 @@
|
||||
Q_PROPERTY(TYPE NAME READ NAME WRITE SETNAME NOTIFY NAME ## Changed USER true) \
|
||||
public: \
|
||||
TYPE NAME() const { return a_ ## NAME ; } \
|
||||
Q_SLOT void SETNAME(TYPE value) { \
|
||||
Q_SLOT void SETNAME(const TYPE &value) { \
|
||||
if (a_ ## NAME == value) return; \
|
||||
a_ ## NAME = value; \
|
||||
emit NAME ## Changed(value); \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user