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:
@ -128,13 +128,8 @@ class ProjectListFilter : public HBoxContainer {
|
||||
private:
|
||||
friend class ProjectManager;
|
||||
|
||||
enum Command {
|
||||
CMD_CLEAR_FILTER,
|
||||
};
|
||||
|
||||
OptionButton *filter_option;
|
||||
LineEdit *search_box;
|
||||
ToolButton *clear_search_button;
|
||||
|
||||
enum FilterOption {
|
||||
FILTER_NAME,
|
||||
@ -142,7 +137,6 @@ private:
|
||||
};
|
||||
FilterOption _current_filter;
|
||||
|
||||
void _command(int p_command);
|
||||
void _search_text_changed(const String &p_newtext);
|
||||
void _setup_filters();
|
||||
void _filter_option_selected(int p_idx);
|
||||
|
||||
Reference in New Issue
Block a user