summaryrefslogtreecommitdiffstats
path: root/editor/editor_dock_manager.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-14 18:10:05 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-14 18:10:05 +0200
commitc0d2464d6b176c8e22a592167748c92d0c42dd01 (patch)
treef40440e8760c7bafd95c2cb2346a976c6396db06 /editor/editor_dock_manager.cpp
parent882449f496cab29098e663c1ca57e9b525ed9987 (diff)
parentee79386f7b5620c3d1ed18d24de7b9a4731602d4 (diff)
downloadredot-engine-c0d2464d6b176c8e22a592167748c92d0c42dd01.tar.gz
Merge pull request #91939 from AThousandShips/pressed_sname
[Scene] Add `SceneStringNames::pressed`
Diffstat (limited to 'editor/editor_dock_manager.cpp')
-rw-r--r--editor/editor_dock_manager.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/editor/editor_dock_manager.cpp b/editor/editor_dock_manager.cpp
index 2357a0e0ba..5d98fefa76 100644
--- a/editor/editor_dock_manager.cpp
+++ b/editor/editor_dock_manager.cpp
@@ -1080,7 +1080,7 @@ DockContextPopup::DockContextPopup() {
tab_move_left_button = memnew(Button);
tab_move_left_button->set_flat(true);
tab_move_left_button->set_focus_mode(Control::FOCUS_NONE);
- tab_move_left_button->connect("pressed", callable_mp(this, &DockContextPopup::_tab_move_left));
+ tab_move_left_button->connect(SceneStringName(pressed), callable_mp(this, &DockContextPopup::_tab_move_left));
header_hb->add_child(tab_move_left_button);
Label *position_label = memnew(Label);
@@ -1092,7 +1092,7 @@ DockContextPopup::DockContextPopup() {
tab_move_right_button = memnew(Button);
tab_move_right_button->set_flat(true);
tab_move_right_button->set_focus_mode(Control::FOCUS_NONE);
- tab_move_right_button->connect("pressed", callable_mp(this, &DockContextPopup::_tab_move_right));
+ tab_move_right_button->connect(SceneStringName(pressed), callable_mp(this, &DockContextPopup::_tab_move_right));
header_hb->add_child(tab_move_right_button);
dock_select_popup_vb->add_child(header_hb);
@@ -1115,7 +1115,7 @@ DockContextPopup::DockContextPopup() {
}
make_float_button->set_focus_mode(Control::FOCUS_NONE);
make_float_button->set_h_size_flags(Control::SIZE_EXPAND_FILL);
- make_float_button->connect("pressed", callable_mp(this, &DockContextPopup::_float_dock));
+ make_float_button->connect(SceneStringName(pressed), callable_mp(this, &DockContextPopup::_float_dock));
dock_select_popup_vb->add_child(make_float_button);
dock_to_bottom_button = memnew(Button);
@@ -1123,7 +1123,7 @@ DockContextPopup::DockContextPopup() {
dock_to_bottom_button->set_tooltip_text(TTR("Move this dock to the bottom panel."));
dock_to_bottom_button->set_focus_mode(Control::FOCUS_NONE);
dock_to_bottom_button->set_h_size_flags(Control::SIZE_EXPAND_FILL);
- dock_to_bottom_button->connect("pressed", callable_mp(this, &DockContextPopup::_move_dock_to_bottom));
+ dock_to_bottom_button->connect(SceneStringName(pressed), callable_mp(this, &DockContextPopup::_move_dock_to_bottom));
dock_to_bottom_button->hide();
dock_select_popup_vb->add_child(dock_to_bottom_button);
@@ -1132,6 +1132,6 @@ DockContextPopup::DockContextPopup() {
close_button->set_tooltip_text(TTR("Close this dock."));
close_button->set_focus_mode(Control::FOCUS_NONE);
close_button->set_h_size_flags(Control::SIZE_EXPAND_FILL);
- close_button->connect("pressed", callable_mp(this, &DockContextPopup::_close_dock));
+ close_button->connect(SceneStringName(pressed), callable_mp(this, &DockContextPopup::_close_dock));
dock_select_popup_vb->add_child(close_button);
}