aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/stylers
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-16 21:17:09 +0800
committercrupest <crupest@outlook.com>2022-02-16 21:17:09 +0800
commit2711b7032cafdc9bdbd6ae06db0325c91e6e7f63 (patch)
tree9f19ec2697e1cf27895540f989d52946dcf4adab /src/theme_builder/components/stylers
parentc6de932f727ed324cf875ea3fca9ca44775a820e (diff)
downloadcru-2711b7032cafdc9bdbd6ae06db0325c91e6e7f63.tar.gz
cru-2711b7032cafdc9bdbd6ae06db0325c91e6e7f63.tar.bz2
cru-2711b7032cafdc9bdbd6ae06db0325c91e6e7f63.zip
...
Diffstat (limited to 'src/theme_builder/components/stylers')
-rw-r--r--src/theme_builder/components/stylers/BorderStylerEditor.h2
-rw-r--r--src/theme_builder/components/stylers/CompoundStylerEditor.h2
-rw-r--r--src/theme_builder/components/stylers/CursorStylerEditor.h2
-rw-r--r--src/theme_builder/components/stylers/StylerEditor.h1
4 files changed, 4 insertions, 3 deletions
diff --git a/src/theme_builder/components/stylers/BorderStylerEditor.h b/src/theme_builder/components/stylers/BorderStylerEditor.h
index 9e2147b4..ec871775 100644
--- a/src/theme_builder/components/stylers/BorderStylerEditor.h
+++ b/src/theme_builder/components/stylers/BorderStylerEditor.h
@@ -21,7 +21,7 @@ class BorderStylerEditor : public StylerEditor {
ClonablePtr<ui::style::Styler> GetStyler() override { return GetValue(); }
- IEvent<std::nullptr_t>* ChangeEvent() { return &change_event_; }
+ IEvent<std::nullptr_t>* ChangeEvent() override { return &change_event_; }
private:
properties::OptionalPropertyEditor<properties::CornerRadiusPropertyEditor>
diff --git a/src/theme_builder/components/stylers/CompoundStylerEditor.h b/src/theme_builder/components/stylers/CompoundStylerEditor.h
index 5b1f86e0..a5c6fbb2 100644
--- a/src/theme_builder/components/stylers/CompoundStylerEditor.h
+++ b/src/theme_builder/components/stylers/CompoundStylerEditor.h
@@ -42,7 +42,7 @@ class CompoundStylerEditor : public StylerEditor {
ClonablePtr<ui::style::Styler> GetStyler() override { return GetValue(); }
- IEvent<std::nullptr_t>* ChangeEvent() { return &change_event_; }
+ IEvent<std::nullptr_t>* ChangeEvent() override { return &change_event_; }
private:
ui::controls::FlexLayout children_container_;
diff --git a/src/theme_builder/components/stylers/CursorStylerEditor.h b/src/theme_builder/components/stylers/CursorStylerEditor.h
index 49b16a89..5c443819 100644
--- a/src/theme_builder/components/stylers/CursorStylerEditor.h
+++ b/src/theme_builder/components/stylers/CursorStylerEditor.h
@@ -18,7 +18,7 @@ class CursorStylerEditor : public StylerEditor {
ClonablePtr<ui::style::Styler> GetStyler() override { return GetValue(); }
- IEvent<std::nullptr_t>* ChangeEvent() { return &change_event_; }
+ IEvent<std::nullptr_t>* ChangeEvent() override { return &change_event_; }
private:
properties::SelectPropertyEditor cursor_select_;
diff --git a/src/theme_builder/components/stylers/StylerEditor.h b/src/theme_builder/components/stylers/StylerEditor.h
index 6da0f6fa..b3e0d287 100644
--- a/src/theme_builder/components/stylers/StylerEditor.h
+++ b/src/theme_builder/components/stylers/StylerEditor.h
@@ -19,6 +19,7 @@ class StylerEditor : public ui::components::Component {
void SetLabel(String label) { label_.SetText(std::move(label)); }
virtual ClonablePtr<ui::style::Styler> GetStyler() = 0;
+ virtual IEvent<std::nullptr_t>* ChangeEvent() = 0;
private:
ui::controls::FlexLayout container_;