aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/conditions/FocusConditionEditor.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-16 19:10:00 +0800
committercrupest <crupest@outlook.com>2022-02-16 19:10:00 +0800
commit6459edc7c8af9e5c9bafe4f1635194334f42f415 (patch)
tree5d11434b5db55a8ab033676e1ed6a32a5bb2f599 /src/theme_builder/components/conditions/FocusConditionEditor.h
parentec2060983edd2b77ff90b2533404d77ea892a5d9 (diff)
downloadcru-6459edc7c8af9e5c9bafe4f1635194334f42f415.tar.gz
cru-6459edc7c8af9e5c9bafe4f1635194334f42f415.tar.bz2
cru-6459edc7c8af9e5c9bafe4f1635194334f42f415.zip
...
Diffstat (limited to 'src/theme_builder/components/conditions/FocusConditionEditor.h')
-rw-r--r--src/theme_builder/components/conditions/FocusConditionEditor.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/theme_builder/components/conditions/FocusConditionEditor.h b/src/theme_builder/components/conditions/FocusConditionEditor.h
index ab5d40c6..f96ad821 100644
--- a/src/theme_builder/components/conditions/FocusConditionEditor.h
+++ b/src/theme_builder/components/conditions/FocusConditionEditor.h
@@ -12,8 +12,11 @@ class FocusConditionEditor : public ConditionEditor {
public:
ClonablePtr<ui::style::FocusCondition> GetValue() const;
+ void SetValue(ui::style::FocusCondition* value, bool trigger_change = true);
void SetValue(const ClonablePtr<ui::style::FocusCondition>& value,
- bool trigger_change = true);
+ bool trigger_change = true) {
+ SetValue(value.get(), trigger_change);
+ }
ClonablePtr<ui::style::Condition> GetCondition() override {
return GetValue();