| 1516 | } |
| 1517 | |
| 1518 | void CodeTextEditor::set_error(const String &p_error) { |
| 1519 | error->set_text(p_error); |
| 1520 | |
| 1521 | _update_error_content_height(); |
| 1522 | |
| 1523 | if (p_error.is_empty()) { |
| 1524 | error->set_default_cursor_shape(CURSOR_ARROW); |
| 1525 | } else { |
| 1526 | error->set_default_cursor_shape(CURSOR_POINTING_HAND); |
| 1527 | } |
| 1528 | } |
| 1529 | |
| 1530 | void CodeTextEditor::_update_error_content_height() { |
| 1531 | float margin_height = 0; |
no test coverage detected