diff options
| author | Daniel J. Ramirez | 2017-07-18 14:35:37 -0500 |
|---|---|---|
| committer | Daniel J. Ramirez | 2017-07-19 13:23:16 -0500 |
| commit | 95f55c8f0d0e56fd039333b611d12f88b74cde78 (patch) | |
| tree | 60f4e8a231d9b2c8d1cb84a69b418eac04adabda /editor/filesystem_dock.cpp | |
| parent | 9cf72d0ae174badab07b1461f576955725375046 (diff) | |
| download | godot-95f55c8f0d0e56fd039333b611d12f88b74cde78.tar.gz godot-95f55c8f0d0e56fd039333b611d12f88b74cde78.tar.zst godot-95f55c8f0d0e56fd039333b611d12f88b74cde78.zip | |
Diffstat (limited to 'editor/filesystem_dock.cpp')
| -rw-r--r-- | editor/filesystem_dock.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index fe66cd700..c82c59913 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -153,7 +153,7 @@ void FileSystemDock::_notification(int p_what) { files->connect("item_activated", this, "_select_file"); button_hist_next->connect("pressed", this, "_fw_history"); button_hist_prev->connect("pressed", this, "_bw_history"); - search_icon->set_texture(get_icon("Search", "EditorIcons")); + search_box->add_icon_override("right_icon", get_icon("Search", "EditorIcons")); button_hist_next->set_icon(get_icon("Forward", "EditorIcons")); button_hist_prev->set_icon(get_icon("Back", "EditorIcons")); @@ -1749,10 +1749,6 @@ FileSystemDock::FileSystemDock(EditorNode *p_editor) { path_hb->add_child(search_box); search_box->connect("text_changed", this, "_search_changed"); - search_icon = memnew(TextureRect); - search_icon->set_stretch_mode(TextureRect::STRETCH_KEEP_CENTERED); - path_hb->add_child(search_icon); - button_display_mode = memnew(ToolButton); path_hb->add_child(button_display_mode); button_display_mode->set_toggle_mode(true); |
