diff options
| author | crupest <crupest@outlook.com> | 2022-02-16 19:10:00 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2022-02-16 19:10:00 +0800 |
| commit | 6459edc7c8af9e5c9bafe4f1635194334f42f415 (patch) | |
| tree | 5d11434b5db55a8ab033676e1ed6a32a5bb2f599 /src/theme_builder/components/conditions/CheckedConditionEditor.h | |
| parent | ec2060983edd2b77ff90b2533404d77ea892a5d9 (diff) | |
| download | cru-6459edc7c8af9e5c9bafe4f1635194334f42f415.tar.gz cru-6459edc7c8af9e5c9bafe4f1635194334f42f415.tar.bz2 cru-6459edc7c8af9e5c9bafe4f1635194334f42f415.zip | |
...
Diffstat (limited to 'src/theme_builder/components/conditions/CheckedConditionEditor.h')
| -rw-r--r-- | src/theme_builder/components/conditions/CheckedConditionEditor.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/theme_builder/components/conditions/CheckedConditionEditor.h b/src/theme_builder/components/conditions/CheckedConditionEditor.h index 4a5fae4e..e5203770 100644 --- a/src/theme_builder/components/conditions/CheckedConditionEditor.h +++ b/src/theme_builder/components/conditions/CheckedConditionEditor.h @@ -12,8 +12,11 @@ class CheckedConditionEditor : public ConditionEditor { public: ClonablePtr<ui::style::CheckedCondition> GetValue() const; + void SetValue(ui::style::CheckedCondition* value, bool trigger_change = true); void SetValue(const ClonablePtr<ui::style::CheckedCondition>& value, - bool trigger_change = true); + bool trigger_change = true) { + SetValue(value.get(), trigger_change); + } ClonablePtr<ui::style::Condition> GetCondition() override { return GetValue(); |
