diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-04-25 14:44:06 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-04-25 14:44:06 +0200 |
commit | ae7872fd029bcfa3a366cde21625c87ca32838be (patch) | |
tree | 47b3ee55025336a127dda27b3c5a3977fc3da75a /scene/gui/item_list.h | |
parent | c89b3710cb1a936e0b771f4f69043167d5fcaea9 (diff) | |
parent | 9a968088db98b585849f6b8dba266d6ea78d2a49 (diff) | |
download | redot-engine-ae7872fd029bcfa3a366cde21625c87ca32838be.tar.gz |
Merge pull request #76199 from needleful/incremental_search_property
Add allow_search property to ItemList and Tree to control incremental search
Diffstat (limited to 'scene/gui/item_list.h')
-rw-r--r-- | scene/gui/item_list.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/item_list.h b/scene/gui/item_list.h index d050f4a9d0..cd91f97410 100644 --- a/scene/gui/item_list.h +++ b/scene/gui/item_list.h @@ -90,6 +90,7 @@ private: bool ensure_selected_visible = false; bool same_column_width = false; + bool allow_search = true; bool auto_height = false; float auto_height_value = 0.0; @@ -258,6 +259,9 @@ public: void set_allow_reselect(bool p_allow); bool get_allow_reselect() const; + void set_allow_search(bool p_allow); + bool get_allow_search() const; + void ensure_current_is_visible(); void sort_items_by_text(); |