mirror of
https://gitlab.com/spaceti-app/integrations/common/server-sdk.git
synced 2026-07-12 15:30:36 +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) \
|
Q_PROPERTY(TYPE NAME READ NAME WRITE SETNAME NOTIFY NAME ## Changed USER true) \
|
||||||
public: \
|
public: \
|
||||||
TYPE NAME() const { return a_ ## NAME ; } \
|
TYPE NAME() const { return a_ ## NAME ; } \
|
||||||
Q_SLOT void SETNAME(TYPE value) { \
|
Q_SLOT void SETNAME(const TYPE &value) { \
|
||||||
if (a_ ## NAME == value) return; \
|
if (a_ ## NAME == value) return; \
|
||||||
a_ ## NAME = value; \
|
a_ ## NAME = value; \
|
||||||
emit NAME ## Changed(value); \
|
emit NAME ## Changed(value); \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user