mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Use the property system for our components
This commit is contained in:
parent
8ec6fd5237
commit
f4bfc3a5b4
5 changed files with 35 additions and 27 deletions
|
@ -17,9 +17,10 @@ struct Property
|
|||
Property(Property&&) = delete;
|
||||
Property &operator=(const Property&) = delete;
|
||||
|
||||
/* Should it be implicit?
|
||||
void operator=(const T &value) {
|
||||
set(value);
|
||||
}
|
||||
}*/
|
||||
|
||||
void set(const T &value) const {
|
||||
this->value = value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue