diff options
| author | crupest <crupest@outlook.com> | 2022-02-16 23:41:28 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2022-02-16 23:41:28 +0800 |
| commit | 77e0fd5cf7dd35324a7c3a43f2004fb923c6254c (patch) | |
| tree | 0d66fd74fa61bb680ac0ae35c9faa4e5d853f295 /src/theme_builder/components/properties | |
| parent | 9307bd1af7c52aaf9c6d25b598bf3069a63c32a1 (diff) | |
| download | cru-77e0fd5cf7dd35324a7c3a43f2004fb923c6254c.tar.gz cru-77e0fd5cf7dd35324a7c3a43f2004fb923c6254c.tar.bz2 cru-77e0fd5cf7dd35324a7c3a43f2004fb923c6254c.zip | |
...
Diffstat (limited to 'src/theme_builder/components/properties')
8 files changed, 8 insertions, 14 deletions
diff --git a/src/theme_builder/components/properties/CheckBoxPropertyEditor.cpp b/src/theme_builder/components/properties/CheckBoxPropertyEditor.cpp index 2e921f96..3b96b716 100644 --- a/src/theme_builder/components/properties/CheckBoxPropertyEditor.cpp +++ b/src/theme_builder/components/properties/CheckBoxPropertyEditor.cpp @@ -15,9 +15,7 @@ CheckBoxPropertyEditor::CheckBoxPropertyEditor() { }); } -CheckBoxPropertyEditor::~CheckBoxPropertyEditor() { - container_.RemoveFromParent(); -} +CheckBoxPropertyEditor::~CheckBoxPropertyEditor() {} void CheckBoxPropertyEditor::SetValue(bool value, bool trigger_change) { if (!trigger_change) suppress_next_change_event_ = true; diff --git a/src/theme_builder/components/properties/ColorPropertyEditor.cpp b/src/theme_builder/components/properties/ColorPropertyEditor.cpp index 7c3b9b46..d6577abb 100644 --- a/src/theme_builder/components/properties/ColorPropertyEditor.cpp +++ b/src/theme_builder/components/properties/ColorPropertyEditor.cpp @@ -29,7 +29,7 @@ ColorPropertyEditor::ColorPropertyEditor() { }); } -ColorPropertyEditor::~ColorPropertyEditor() { container_.RemoveFromParent(); } +ColorPropertyEditor::~ColorPropertyEditor() {} void ColorPropertyEditor::SetValue(const ui::Color &color, bool trigger_change) { diff --git a/src/theme_builder/components/properties/CornerRadiusPropertyEditor.cpp b/src/theme_builder/components/properties/CornerRadiusPropertyEditor.cpp index 9dc8d20e..635069fe 100644 --- a/src/theme_builder/components/properties/CornerRadiusPropertyEditor.cpp +++ b/src/theme_builder/components/properties/CornerRadiusPropertyEditor.cpp @@ -34,9 +34,7 @@ CornerRadiusPropertyEditor::CornerRadiusPropertyEditor() { }); } -CornerRadiusPropertyEditor::~CornerRadiusPropertyEditor() { - container_.RemoveFromParent(); -} +CornerRadiusPropertyEditor::~CornerRadiusPropertyEditor() {} void CornerRadiusPropertyEditor::SetValue(const ui::CornerRadius& corner_radius, bool trigger_change) { diff --git a/src/theme_builder/components/properties/OptionalPropertyEditor.h b/src/theme_builder/components/properties/OptionalPropertyEditor.h index 03eb759c..98b9786d 100644 --- a/src/theme_builder/components/properties/OptionalPropertyEditor.h +++ b/src/theme_builder/components/properties/OptionalPropertyEditor.h @@ -21,7 +21,7 @@ class OptionalPropertyEditor : public ui::components::Component { } }); } - ~OptionalPropertyEditor() override { container_.RemoveFromParent(); } + ~OptionalPropertyEditor() override {} ui::controls::Control* GetRootControl() override { return &container_; } diff --git a/src/theme_builder/components/properties/PointPropertyEditor.cpp b/src/theme_builder/components/properties/PointPropertyEditor.cpp index 9b5a5e83..702b26e8 100644 --- a/src/theme_builder/components/properties/PointPropertyEditor.cpp +++ b/src/theme_builder/components/properties/PointPropertyEditor.cpp @@ -24,7 +24,7 @@ PointPropertyEditor::PointPropertyEditor() { }); } -PointPropertyEditor::~PointPropertyEditor() { container_.RemoveFromParent(); } +PointPropertyEditor::~PointPropertyEditor() {} void PointPropertyEditor::SetValue(const ui::Point& point, bool trigger_change) { diff --git a/src/theme_builder/components/properties/SelectPropertyEditor.cpp b/src/theme_builder/components/properties/SelectPropertyEditor.cpp index 10011d65..243f6035 100644 --- a/src/theme_builder/components/properties/SelectPropertyEditor.cpp +++ b/src/theme_builder/components/properties/SelectPropertyEditor.cpp @@ -16,6 +16,6 @@ SelectPropertyEditor::SelectPropertyEditor() { }); } -SelectPropertyEditor::~SelectPropertyEditor() { container_.RemoveFromParent(); } +SelectPropertyEditor::~SelectPropertyEditor() {} } // namespace cru::theme_builder::components::properties diff --git a/src/theme_builder/components/properties/TextPropertyEditor.cpp b/src/theme_builder/components/properties/TextPropertyEditor.cpp index 916e907b..9854019c 100644 --- a/src/theme_builder/components/properties/TextPropertyEditor.cpp +++ b/src/theme_builder/components/properties/TextPropertyEditor.cpp @@ -12,7 +12,7 @@ TextPropertyEditor::TextPropertyEditor() { }); } -TextPropertyEditor::~TextPropertyEditor() { container_.RemoveFromParent(); } +TextPropertyEditor::~TextPropertyEditor() {} bool TextPropertyEditor::Validate(StringView text, String* error_message) { return true; diff --git a/src/theme_builder/components/properties/ThicknessPropertyEditor.cpp b/src/theme_builder/components/properties/ThicknessPropertyEditor.cpp index 2d922b69..c5e5f658 100644 --- a/src/theme_builder/components/properties/ThicknessPropertyEditor.cpp +++ b/src/theme_builder/components/properties/ThicknessPropertyEditor.cpp @@ -23,9 +23,7 @@ ThicknessPropertyEditor::ThicknessPropertyEditor() { }); } -ThicknessPropertyEditor::~ThicknessPropertyEditor() { - container_.RemoveFromParent(); -} +ThicknessPropertyEditor::~ThicknessPropertyEditor() {} void ThicknessPropertyEditor::SetValue(const ui::Thickness &thickness, bool trigger_change) { |
