mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 05:44:52 +00:00
Fix the C++ build
Remove the Optional from the evaluation context passing for property evaluation. Unfortunately there are nullptr uses left on the C++ side, that need to be replaced with passing through.
This commit is contained in:
parent
4f9c53879b
commit
f2df9293a9
10 changed files with 42 additions and 50 deletions
|
@ -10,12 +10,12 @@ int main() {
|
|||
|
||||
component.plus_clicked.set_handler([](auto...){
|
||||
auto &counter = component.counter;
|
||||
counter.set(counter.get() + 1);
|
||||
counter.set(counter.get(nullptr) + 1);
|
||||
});
|
||||
|
||||
component.minus_clicked.set_handler([](auto...){
|
||||
auto &counter = component.counter;
|
||||
counter.set(counter.get() - 1);
|
||||
counter.set(counter.get(nullptr) - 1);
|
||||
});
|
||||
|
||||
sixtyfps::run(&component);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue