summaryrefslogtreecommitdiffstats
path: root/scene/gui/spin_box.cpp
diff options
context:
space:
mode:
authorTomasz Chabora <kobewi4e@gmail.com>2019-05-21 14:49:53 +0200
committerTomasz Chabora <kobewi4e@gmail.com>2019-05-21 14:49:53 +0200
commit2d84ec5468ea0f88b2df5e5f8ae257f72288aa9d (patch)
treea532cc536b0442ee498c4c7d56f2399856e481f7 /scene/gui/spin_box.cpp
parent8c95e1aaf848801b91bdb991da1f53dc77493077 (diff)
downloadredot-engine-2d84ec5468ea0f88b2df5e5f8ae257f72288aa9d.tar.gz
Pass mouse events to SpinBox from its LineEdit
Diffstat (limited to 'scene/gui/spin_box.cpp')
-rw-r--r--scene/gui/spin_box.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp
index d21143739c..e778af3ceb 100644
--- a/scene/gui/spin_box.cpp
+++ b/scene/gui/spin_box.cpp
@@ -277,6 +277,7 @@ SpinBox::SpinBox() {
add_child(line_edit);
line_edit->set_anchors_and_margins_preset(Control::PRESET_WIDE);
+ line_edit->set_mouse_filter(MOUSE_FILTER_PASS);
//connect("value_changed",this,"_value_changed");
line_edit->connect("text_entered", this, "_text_entered", Vector<Variant>(), CONNECT_DEFERRED);
line_edit->connect("focus_exited", this, "_line_edit_focus_exit", Vector<Variant>(), CONNECT_DEFERRED);