summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorEricEzaM <itsjusteza@gmail.com>2022-10-03 00:50:05 +1000
committerEricEzaM <itsjusteza@gmail.com>2022-10-03 19:56:34 +1000
commitcb6d7fd0596ff86f2361f7791493b6f1b30c6935 (patch)
tree7f83f2e45d34322cf7309e8f14228d1b1cd9bdb2 /scene/gui
parente69b7083d45c5d8698508cce7086d361c4b1f44c (diff)
Add searching by event for Editor Settings shortcuts and Project Settings input map.
* Focus into the LineEdit, then perform input to search the list of events by the events assigned. * New specialised editor-only control for this: EventListenerLineEdit. Line edit is a good candidate for such a control because you can focus it, override it's input handling, and show the event all in one control. Update InputEventConfigurationDialog to use event listener line edit rather than the separate tabs. * Cleaner look - no need for tabs. * Simpler code.
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/line_edit.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/gui/line_edit.h b/scene/gui/line_edit.h
index a4d5205f81..861c7f273b 100644
--- a/scene/gui/line_edit.h
+++ b/scene/gui/line_edit.h
@@ -199,8 +199,6 @@ private:
float base_scale = 1.0;
} theme_cache;
- bool _is_over_clear_button(const Point2 &p_pos) const;
-
void _clear_undo_stack();
void _clear_redo();
void _create_undo_state();
@@ -240,6 +238,7 @@ private:
void _ensure_menu();
protected:
+ bool _is_over_clear_button(const Point2 &p_pos) const;
virtual void _update_theme_item_cache() override;
void _notification(int p_what);
static void _bind_methods();