Fix crash in EditorSpinSlider
This commit is contained in:
parent
afc59ae84b
commit
110236f761
2 changed files with 6 additions and 1 deletions
|
@ -389,6 +389,11 @@ void EditorSpinSlider::_notification(int p_what) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LineEdit *EditorSpinSlider::get_line_edit() {
|
||||||
|
_ensure_input_popup();
|
||||||
|
return value_input;
|
||||||
|
}
|
||||||
|
|
||||||
Size2 EditorSpinSlider::get_minimum_size() const {
|
Size2 EditorSpinSlider::get_minimum_size() const {
|
||||||
Ref<StyleBox> sb = get_theme_stylebox("normal", "LineEdit");
|
Ref<StyleBox> sb = get_theme_stylebox("normal", "LineEdit");
|
||||||
Ref<Font> font = get_theme_font("font", "LineEdit");
|
Ref<Font> font = get_theme_font("font", "LineEdit");
|
||||||
|
|
|
@ -112,7 +112,7 @@ public:
|
||||||
void set_custom_label_color(bool p_use_custom_label_color, Color p_custom_label_color);
|
void set_custom_label_color(bool p_use_custom_label_color, Color p_custom_label_color);
|
||||||
|
|
||||||
void setup_and_show() { _focus_entered(); }
|
void setup_and_show() { _focus_entered(); }
|
||||||
LineEdit *get_line_edit() { return value_input; }
|
LineEdit *get_line_edit();
|
||||||
|
|
||||||
virtual Size2 get_minimum_size() const override;
|
virtual Size2 get_minimum_size() const override;
|
||||||
EditorSpinSlider();
|
EditorSpinSlider();
|
||||||
|
|
Loading…
Reference in a new issue