aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder
diff options
context:
space:
mode:
Diffstat (limited to 'src/theme_builder')
-rw-r--r--src/theme_builder/components/StyleRuleEditor.cpp2
-rw-r--r--src/theme_builder/components/StyleRuleSetEditor.cpp2
-rw-r--r--src/theme_builder/components/conditions/CompoundConditionEditor.cpp4
-rw-r--r--src/theme_builder/components/conditions/ConditionEditor.cpp2
-rw-r--r--src/theme_builder/components/properties/CheckBoxPropertyEditor.cpp4
-rw-r--r--src/theme_builder/components/properties/ColorPropertyEditor.cpp2
-rw-r--r--src/theme_builder/components/properties/CornerRadiusPropertyEditor.cpp4
-rw-r--r--src/theme_builder/components/properties/OptionalPropertyEditor.h2
-rw-r--r--src/theme_builder/components/properties/PointPropertyEditor.cpp2
-rw-r--r--src/theme_builder/components/properties/SelectPropertyEditor.cpp2
-rw-r--r--src/theme_builder/components/properties/TextPropertyEditor.cpp2
-rw-r--r--src/theme_builder/components/properties/ThicknessPropertyEditor.cpp4
-rw-r--r--src/theme_builder/components/stylers/CompoundStylerEditor.cpp4
-rw-r--r--src/theme_builder/components/stylers/StylerEditor.cpp2
14 files changed, 14 insertions, 24 deletions
diff --git a/src/theme_builder/components/StyleRuleEditor.cpp b/src/theme_builder/components/StyleRuleEditor.cpp
index 7a99900b..b697f92c 100644
--- a/src/theme_builder/components/StyleRuleEditor.cpp
+++ b/src/theme_builder/components/StyleRuleEditor.cpp
@@ -17,7 +17,7 @@ StyleRuleEditor::StyleRuleEditor() {
[this] { remove_event_.Raise(nullptr); });
}
-StyleRuleEditor::~StyleRuleEditor() { main_layout_.RemoveFromParent(); }
+StyleRuleEditor::~StyleRuleEditor() {}
ui::style::StyleRule StyleRuleEditor::GetValue() const {
return ui::style::StyleRule(condition_editor_->GetCondition(),
diff --git a/src/theme_builder/components/StyleRuleSetEditor.cpp b/src/theme_builder/components/StyleRuleSetEditor.cpp
index b5e6de91..dde7f3b8 100644
--- a/src/theme_builder/components/StyleRuleSetEditor.cpp
+++ b/src/theme_builder/components/StyleRuleSetEditor.cpp
@@ -25,7 +25,7 @@ StyleRuleSetEditor::StyleRuleSetEditor() {
});
}
-StyleRuleSetEditor::~StyleRuleSetEditor() { scroll_view_.RemoveFromParent(); }
+StyleRuleSetEditor::~StyleRuleSetEditor() {}
void StyleRuleSetEditor::BindStyleRuleSet(
std::shared_ptr<ui::style::StyleRuleSet> rule_set) {
diff --git a/src/theme_builder/components/conditions/CompoundConditionEditor.cpp b/src/theme_builder/components/conditions/CompoundConditionEditor.cpp
index b4f0b458..ae72b51f 100644
--- a/src/theme_builder/components/conditions/CompoundConditionEditor.cpp
+++ b/src/theme_builder/components/conditions/CompoundConditionEditor.cpp
@@ -23,9 +23,7 @@ CompoundConditionEditorChild::CompoundConditionEditorChild(
[this] { this->remove_event_.Raise(nullptr); });
}
-CompoundConditionEditorChild::~CompoundConditionEditorChild() {
- container_.RemoveFromParent();
-}
+CompoundConditionEditorChild::~CompoundConditionEditorChild() {}
CompoundConditionEditor::CompoundConditionEditor() {
SetLabel(u"Compound Condition");
diff --git a/src/theme_builder/components/conditions/ConditionEditor.cpp b/src/theme_builder/components/conditions/ConditionEditor.cpp
index 8ffd33a5..2840b250 100644
--- a/src/theme_builder/components/conditions/ConditionEditor.cpp
+++ b/src/theme_builder/components/conditions/ConditionEditor.cpp
@@ -13,7 +13,7 @@ ConditionEditor::ConditionEditor() {
container_.AddChild(&label_);
}
-ConditionEditor::~ConditionEditor() { container_.RemoveFromParent(); }
+ConditionEditor::~ConditionEditor() {}
std::unique_ptr<ConditionEditor> CreateConditionEditor(
ui::style::Condition* condition) {
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) {
diff --git a/src/theme_builder/components/stylers/CompoundStylerEditor.cpp b/src/theme_builder/components/stylers/CompoundStylerEditor.cpp
index 69fd0824..568c34f3 100644
--- a/src/theme_builder/components/stylers/CompoundStylerEditor.cpp
+++ b/src/theme_builder/components/stylers/CompoundStylerEditor.cpp
@@ -20,9 +20,7 @@ CompoundStylerEditorChild::CompoundStylerEditorChild(
[this] { this->remove_event_.Raise(nullptr); });
}
-CompoundStylerEditorChild::~CompoundStylerEditorChild() {
- container_.RemoveFromParent();
-}
+CompoundStylerEditorChild::~CompoundStylerEditorChild() {}
CompoundStylerEditor::CompoundStylerEditor() {
SetLabel(u"Compound Styler");
diff --git a/src/theme_builder/components/stylers/StylerEditor.cpp b/src/theme_builder/components/stylers/StylerEditor.cpp
index 4f3238e2..99eaebad 100644
--- a/src/theme_builder/components/stylers/StylerEditor.cpp
+++ b/src/theme_builder/components/stylers/StylerEditor.cpp
@@ -10,7 +10,7 @@ StylerEditor::StylerEditor() {
container_.AddChild(&label_);
}
-StylerEditor::~StylerEditor() { container_.RemoveFromParent(); }
+StylerEditor::~StylerEditor() {}
std::unique_ptr<StylerEditor> CreateStylerEditor(ui::style::Styler* styler) {
if (auto compound_styler = dynamic_cast<ui::style::CompoundStyler*>(styler)) {