Add clear text button to LineEdit
- Add pressed state to clear button - Enable clear button on all inputs with search icon - Remove duplicate clear buttons - Fix rendering of icon for center and right alignments - Add clear button to more search fields - Add clear icon to default theme - Add method to control enabled state of clear button - Add property to enable clear button from inspector
This commit is contained in:
@ -863,6 +863,7 @@ void SceneTreeDock::_notification(int p_what) {
|
||||
button_clear_script->set_icon(get_icon("ScriptRemove", "EditorIcons"));
|
||||
|
||||
filter->add_icon_override("right_icon", get_icon("Search", "EditorIcons"));
|
||||
filter->set_clear_button_enabled(true);
|
||||
|
||||
EditorNode::get_singleton()->get_editor_selection()->connect("selection_changed", this, "_selection_changed");
|
||||
|
||||
@ -911,6 +912,7 @@ void SceneTreeDock::_notification(int p_what) {
|
||||
button_clear_script->set_icon(get_icon("ScriptRemove", "EditorIcons"));
|
||||
|
||||
filter->add_icon_override("right_icon", get_icon("Search", "EditorIcons"));
|
||||
filter->set_clear_button_enabled(true);
|
||||
} break;
|
||||
case NOTIFICATION_PROCESS: {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user