summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2021-12-06 14:02:34 +0100
committerkobewi <kobewi4e@gmail.com>2021-12-06 14:02:34 +0100
commitea7cc1dea93e0003182be2941d10124043c30edf (patch)
tree9319d2b2337d1ac0b156842c98a5aa2f104a347e /editor
parent608c9f820349ca13f017ea406c790d90729da837 (diff)
downloadredot-engine-ea7cc1dea93e0003182be2941d10124043c30edf.tar.gz
Rename minimum_size_changed() method
Diffstat (limited to 'editor')
-rw-r--r--editor/animation_track_editor.cpp2
-rw-r--r--editor/editor_inspector.cpp4
-rw-r--r--editor/editor_properties.cpp4
-rw-r--r--editor/plugins/theme_editor_preview.cpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp
index f36a2099d5..eacfeb06fd 100644
--- a/editor/animation_track_editor.cpp
+++ b/editor/animation_track_editor.cpp
@@ -3241,7 +3241,7 @@ void AnimationTrackEditGroup::set_type_and_name(const Ref<Texture2D> &p_type, co
node_name = p_name;
node = p_node;
update();
- minimum_size_changed();
+ update_minimum_size();
}
Size2 AnimationTrackEditGroup::get_minimum_size() const {
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index a6cd07dab3..2bcfa61a94 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -1144,7 +1144,7 @@ void EditorInspectorSection::_test_unfold() {
void EditorInspectorSection::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_THEME_CHANGED: {
- minimum_size_changed();
+ update_minimum_size();
} break;
case NOTIFICATION_SORT_CHILDREN: {
if (!vbox_added) {
@@ -1995,7 +1995,7 @@ void EditorInspectorArray::_notification(int p_what) {
prev_page_button->set_icon(get_theme_icon(SNAME("PagePrevious"), SNAME("EditorIcons")));
next_page_button->set_icon(get_theme_icon(SNAME("PageNext"), SNAME("EditorIcons")));
last_page_button->set_icon(get_theme_icon(SNAME("PageLast"), SNAME("EditorIcons")));
- minimum_size_changed();
+ update_minimum_size();
} break;
case NOTIFICATION_DRAG_BEGIN: {
Dictionary dict = get_viewport()->gui_get_drag_data();
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp
index e48679cad7..287287fd32 100644
--- a/editor/editor_properties.cpp
+++ b/editor/editor_properties.cpp
@@ -832,7 +832,7 @@ public:
update();
} else if (expand_hovered) {
expanded = !expanded;
- minimum_size_changed();
+ update_minimum_size();
update();
}
}
@@ -935,7 +935,7 @@ public:
}
if ((expansion_rows != prev_expansion_rows) && expanded) {
- minimum_size_changed();
+ update_minimum_size();
}
if ((expansion_rows == 0) && (layer_index == layer_count)) {
diff --git a/editor/plugins/theme_editor_preview.cpp b/editor/plugins/theme_editor_preview.cpp
index 86b0fc0eaf..7340c17b6e 100644
--- a/editor/plugins/theme_editor_preview.cpp
+++ b/editor/plugins/theme_editor_preview.cpp
@@ -47,7 +47,7 @@ void ThemeEditorPreview::add_preview_overlay(Control *p_overlay) {
void ThemeEditorPreview::_propagate_redraw(Control *p_at) {
p_at->notification(NOTIFICATION_THEME_CHANGED);
- p_at->minimum_size_changed();
+ p_at->update_minimum_size();
p_at->update();
for (int i = 0; i < p_at->get_child_count(); i++) {
Control *a = Object::cast_to<Control>(p_at->get_child(i));