Show the arrow cursor on disabled LinkButtons

This commit is contained in:
Michael Alexsander 2025-10-22 12:01:00 -03:00
parent 9cd297b6f2
commit 66d5a66a14
No known key found for this signature in database
GPG key ID: A9C91EE110F4EABA
2 changed files with 6 additions and 0 deletions

View file

@ -151,6 +151,10 @@ Size2 LinkButton::get_minimum_size() const {
return text_buf->get_size();
}
Control::CursorShape LinkButton::get_cursor_shape(const Point2 &p_pos) const {
return is_disabled() ? CURSOR_ARROW : get_default_cursor_shape();
}
void LinkButton::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_ACCESSIBILITY_UPDATE: {

View file

@ -105,6 +105,8 @@ public:
Ref<Font> get_button_font() const;
virtual CursorShape get_cursor_shape(const Point2 &p_pos) const override;
LinkButton(const String &p_text = String());
};