diff options
author | Alexandru Croitor <alexandru.croitor@theqtcompany.com> | 2015-12-20 19:59:00 +0100 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2016-02-29 08:15:03 +0000 |
commit | bed88818ce3625256e08c5f3b5efc8e9d6a2d99b (patch) | |
tree | 37a29419c9f089bee032a66cb2e1a4f40541f66d /src/plugins/texteditor/convenience.h | |
parent | 8bfdc82c5aa217a14f76ab5c3fa05b285a1fd23e (diff) |
C++: Implement context-aware expand / shrink selection actions.
Implement selection expanding / shrinking, that is aware of C++
semantics, thus giving smart selection changing.
Change-Id: I1386a20597fa6bb85c3aa0d8ddfb87cdb3fd7c38
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src/plugins/texteditor/convenience.h')
-rw-r--r-- | src/plugins/texteditor/convenience.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/texteditor/convenience.h b/src/plugins/texteditor/convenience.h index 4ef8d4d58c..49a4f58130 100644 --- a/src/plugins/texteditor/convenience.h +++ b/src/plugins/texteditor/convenience.h @@ -44,6 +44,8 @@ TEXTEDITOR_EXPORT bool convertPosition(const QTextDocument *document, TEXTEDITOR_EXPORT QString textAt(QTextCursor tc, int pos, int length); +TEXTEDITOR_EXPORT QTextCursor flippedCursor(const QTextCursor &cursor); + } // Util } // TextEditor |