showCaretBlinking - property for editors

This commit is contained in:
Vadim Lopatin 2017-09-25 10:37:59 +03:00
parent 47411b724c
commit 48a0408271
1 changed files with 7 additions and 2 deletions

View File

@ -960,8 +960,13 @@ class EditWidgetBase : ScrollWidgetBase, EditableContentListener, MenuItemAction
protected long _lastBlinkStartTs;
protected bool _caretBlinks = true;
void showCaretBlinking(bool blinks) {
_caretBlinks = blinks;
/// when true, enables caret blinking, otherwise it's always visible
@property void showCaretBlinking(bool blinks) {
_caretBlinks = blinks;
}
/// when true, enables caret blinking, otherwise it's always visible
@property bool showCaretBlinking() {
return _caretBlinks;
}
protected void startCaretBlinking() {