summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorWilson E. Alvarez <wilson.e.alvarez1@gmail.com>2017-08-23 03:04:16 -0400
committerWilson E. Alvarez <wilson.e.alvarez1@gmail.com>2017-08-23 03:04:16 -0400
commit433c01b7e58cfcc597bae9d1122371826f93d64a (patch)
tree103b475174a4a3c4a6970eebbe2ec30d4e424802 /editor
parent582a97fc2ce1bc8b36811a9b1f23058ca7292067 (diff)
Removed EditorHelp::_scroll_changed
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_help.cpp13
-rw-r--r--editor/editor_help.h1
2 files changed, 0 insertions, 14 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp
index 8b1f558c0a..89d70ee926 100644
--- a/editor/editor_help.cpp
+++ b/editor/editor_help.cpp
@@ -630,17 +630,6 @@ void EditorHelp::_add_type(const String &p_type) {
class_desc->pop();
}
-void EditorHelp::_scroll_changed(double p_scroll) {
-
- if (scroll_locked)
- return;
-
- if (!class_desc->get_v_scroll()->is_visible())
- p_scroll = 0;
-
- //history[p].scroll=p_scroll;
-}
-
Error EditorHelp::_goto_desc(const String &p_class, int p_vscr) {
//ERR_FAIL_COND(!doc->class_list.has(p_class));
@@ -1681,7 +1670,6 @@ void EditorHelp::_bind_methods() {
ClassDB::bind_method("_class_desc_select", &EditorHelp::_class_desc_select);
ClassDB::bind_method("_class_desc_input", &EditorHelp::_class_desc_input);
//ClassDB::bind_method("_button_pressed",&EditorHelp::_button_pressed);
- ClassDB::bind_method("_scroll_changed", &EditorHelp::_scroll_changed);
ClassDB::bind_method("_request_help", &EditorHelp::_request_help);
ClassDB::bind_method("_unhandled_key_input", &EditorHelp::_unhandled_key_input);
ClassDB::bind_method("_search", &EditorHelp::_search);
@@ -1714,7 +1702,6 @@ EditorHelp::EditorHelp() {
class_desc->connect("gui_input", this, "_class_desc_input");
}
- class_desc->get_v_scroll()->connect("value_changed", this, "_scroll_changed");
class_desc->set_selection_enabled(true);
scroll_locked = false;
diff --git a/editor/editor_help.h b/editor/editor_help.h
index e0d68605ab..6d9be3db6f 100644
--- a/editor/editor_help.h
+++ b/editor/editor_help.h
@@ -143,7 +143,6 @@ class EditorHelp : public VBoxContainer {
//void _button_pressed(int p_idx);
void _add_type(const String &p_type);
- void _scroll_changed(double p_scroll);
void _class_list_select(const String &p_select);
void _class_desc_select(const String &p_select);
void _class_desc_input(const Ref<InputEvent> &p_input);