diff options
author | Daniel Teske <qt@squorn.de> | 2017-06-27 15:12:05 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2017-07-20 13:46:26 +0000 |
commit | 854fdaaf76873a4f5c6d5a5046b35bc8152fcc24 (patch) | |
tree | 6965008116d8ec8020a26ecd82aaaa22967d1e72 /src/widgets/widgets/qlineedit.h | |
parent | d39ec44e1937c354d8770c5f0257d33b13272141 (diff) |
QLineEdit: Add selectionEnd() and selectionLength()
Getting the end position of the selection was not possible.
[ChangeLog][QtWidgets][QLineEdit] Added selectionEnd(), selectionLength(),
complementing selectionStart().
Change-Id: Iaecc624063d7c043f9502351f07eb76f869e86f1
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/widgets/widgets/qlineedit.h')
-rw-r--r-- | src/widgets/widgets/qlineedit.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/widgets/qlineedit.h b/src/widgets/widgets/qlineedit.h index 4d32b11f06..d84eeedaf6 100644 --- a/src/widgets/widgets/qlineedit.h +++ b/src/widgets/widgets/qlineedit.h @@ -155,6 +155,8 @@ public: bool hasSelectedText() const; QString selectedText() const; int selectionStart() const; + int selectionEnd() const; + int selectionLength() const; bool isUndoAvailable() const; bool isRedoAvailable() const; |