summaryrefslogtreecommitdiff
path: root/scene/gui/line_edit.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-05 17:00:58 +0200
committerGitHub <noreply@github.com>2022-07-05 17:00:58 +0200
commit5f386fecf0769626e19d6bb42e11f7663659d9b6 (patch)
tree76f94f18f3f16b2d23a4b597981d43784fdb0504 /scene/gui/line_edit.h
parent63752df24b6d6d52fb347b264f04541fad0e7d8c (diff)
parent9dc58511c6c85910ec7ba9b3fafa46bb4fde7917 (diff)
Merge pull request #62721 from Nolkaloid/line_edit-caret-blink-fix
Change LineEdit caret blink to use internal process
Diffstat (limited to 'scene/gui/line_edit.h')
-rw-r--r--scene/gui/line_edit.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/gui/line_edit.h b/scene/gui/line_edit.h
index 0fb178fca4..63c57640dc 100644
--- a/scene/gui/line_edit.h
+++ b/scene/gui/line_edit.h
@@ -160,7 +160,9 @@ private:
bool caret_blink_enabled = false;
bool caret_force_displayed = false;
bool draw_caret = true;
- Timer *caret_blink_timer = nullptr;
+ float caret_blink_speed = 0.65;
+ double caret_blink_timer = 0.0;
+ bool caret_blinking = false;
bool _is_over_clear_button(const Point2 &p_pos) const;