aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder/components/properties/ThicknessPropertyEditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/theme_builder/components/properties/ThicknessPropertyEditor.h')
-rw-r--r--src/theme_builder/components/properties/ThicknessPropertyEditor.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/theme_builder/components/properties/ThicknessPropertyEditor.h b/src/theme_builder/components/properties/ThicknessPropertyEditor.h
index 87b160c6..cea9ae9d 100644
--- a/src/theme_builder/components/properties/ThicknessPropertyEditor.h
+++ b/src/theme_builder/components/properties/ThicknessPropertyEditor.h
@@ -1,11 +1,11 @@
#pragma once
-#include "cru/ui/components/Component.h"
+#include "../Editor.h"
#include "cru/ui/controls/FlexLayout.h"
#include "cru/ui/controls/TextBlock.h"
#include "cru/ui/controls/TextBox.h"
namespace cru::theme_builder::components::properties {
-class ThicknessPropertyEditor : public ui::components::Component {
+class ThicknessPropertyEditor : public Editor {
public:
using PropertyType = ui::Thickness;
@@ -20,8 +20,6 @@ class ThicknessPropertyEditor : public ui::components::Component {
ui::Thickness GetValue() const { return thickness_; }
void SetValue(const ui::Thickness& thickness, bool trigger_change = true);
- IEvent<std::nullptr_t>* ChangeEvent() { return &change_event_; }
-
private:
ui::Thickness thickness_;
@@ -29,7 +27,5 @@ class ThicknessPropertyEditor : public ui::components::Component {
ui::controls::TextBlock label_;
ui::controls::TextBox text_;
bool is_text_valid_;
-
- Event<std::nullptr_t> change_event_;
};
} // namespace cru::theme_builder::components::properties