summaryrefslogtreecommitdiff
path: root/editor/code_editor.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-12-21 10:14:04 +0100
committerGitHub <noreply@github.com>2018-12-21 10:14:04 +0100
commitbe8c0d57c565bae9ce4fae140355d9e886c8443b (patch)
tree8145a47e7392f8452e78e2edfbe3dc147a0e54fd /editor/code_editor.h
parentbeccbe1efbf6919e0981fedbca1b7974ca4a4ca8 (diff)
parent260b5818f1cee46e1332b620bf9aaba821d7a025 (diff)
Merge pull request #24519 from Chaosus/error_label_fix
Change LinkLabel back to Label in error status bar
Diffstat (limited to 'editor/code_editor.h')
-rw-r--r--editor/code_editor.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/code_editor.h b/editor/code_editor.h
index 5c71d23554..7be8ddc111 100644
--- a/editor/code_editor.h
+++ b/editor/code_editor.h
@@ -36,7 +36,6 @@
#include "scene/gui/check_button.h"
#include "scene/gui/dialogs.h"
#include "scene/gui/line_edit.h"
-#include "scene/gui/link_button.h"
#include "scene/gui/text_edit.h"
#include "scene/gui/tool_button.h"
#include "scene/main/timer.h"
@@ -157,7 +156,7 @@ class CodeTextEditor : public VBoxContainer {
int font_resize_val;
real_t font_size;
- LinkButton *error;
+ Label *error;
int error_line;
int error_column;
@@ -173,7 +172,6 @@ class CodeTextEditor : public VBoxContainer {
void _zoom_out();
void _zoom_changed();
void _reset_zoom();
- void _error_pressed();
CodeTextEditorCodeCompleteFunc code_complete_func;
void *code_complete_ud;
@@ -220,9 +218,11 @@ public:
void update_line_and_column() { _line_col_changed(); }
TextEdit *get_text_edit() { return text_editor; }
FindReplaceBar *get_find_replace_bar() { return find_replace_bar; }
+ Label *get_error_label() const { return error; }
Label *get_warning_label() const { return warning_label; }
Label *get_warning_count_label() const { return warning_count_label; }
virtual void apply_code() {}
+ void goto_error();
void set_code_complete_func(CodeTextEditorCodeCompleteFunc p_code_complete_func, void *p_ud);