From 06cafeac0a15051e1ba2733989f0a70ae59d496f Mon Sep 17 00:00:00 2001 From: Franklin Sobrinho Date: Thu, 21 Jan 2016 13:03:06 -0300 Subject: Tree and PropertyEditor confirm value change on focus loss --- scene/gui/tree.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scene/gui/tree.h') diff --git a/scene/gui/tree.h b/scene/gui/tree.h index 54e6a9c6b9..2562e6aaef 100644 --- a/scene/gui/tree.h +++ b/scene/gui/tree.h @@ -271,7 +271,6 @@ friend class TreeItem; bool range_drag_enabled; Vector2 range_drag_capture_pos; - //TreeItem *cursor_item; //int cursor_column; @@ -314,6 +313,8 @@ friend class TreeItem; void select_single_item(TreeItem *p_selected,TreeItem *p_current,int p_col,TreeItem *p_prev=NULL,bool *r_in_range=NULL); int propagate_mouse_event(const Point2i &p_pos,int x_ofs,int y_ofs,bool p_doubleclick,TreeItem *p_item,int p_button,const InputModifierState& p_mod); void text_editor_enter(String p_text); + void text_editor_changed(String p_text); + void text_editor_hide(); void value_editor_changed(double p_value); void popup_select(int p_option); @@ -418,6 +419,8 @@ friend class TreeItem; bool hide_folding; + bool text_changed; + protected: static void _bind_methods(); -- cgit v1.2.3