diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-10-25 11:38:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-25 11:38:06 +0200 |
commit | 1169196f0417ebaf5a83b7cd73f4efba3516eb45 (patch) | |
tree | 755f85233094cd735beda929f7a202863ddba9a0 /scene/gui/item_list.cpp | |
parent | 48c6844b0066e630161618ee1eccb931080adc9d (diff) | |
parent | e5041ad0f5ec672fb9e071115a9a1ca12c0d9035 (diff) |
Merge pull request #22779 from Superwaitsum/LimitSettings
Limit several project settings
Diffstat (limited to 'scene/gui/item_list.cpp')
-rw-r--r-- | scene/gui/item_list.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index 0d5fbee9ee..494995fb85 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -1524,6 +1524,7 @@ void ItemList::_bind_methods() { ADD_SIGNAL(MethodInfo("nothing_selected")); GLOBAL_DEF("gui/timers/incremental_search_max_interval_msec", 2000); + ProjectSettings::get_singleton()->set_custom_property_info("gui/timers/incremental_search_max_interval_msec", PropertyInfo(Variant::INT, "gui/timers/incremental_search_max_interval_msec", PROPERTY_HINT_RANGE, "0,10000,1,or_greater")); // No negative numbers } ItemList::ItemList() { |