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>
This commit is contained in:
Alexandru Croitor
2015-12-20 19:59:00 +01:00
committed by Nikolai Kosjar
parent 8bfdc82c5a
commit bed88818ce
21 changed files with 2650 additions and 14 deletions

View File

@@ -449,7 +449,7 @@ void TextEditorActionHandlerPrivate::createActions()
G_EDIT_BLOCKS, advancedEditMenu);
m_selectBlockDownAction = registerAction(SELECT_BLOCK_DOWN,
[this] (TextEditorWidget *w) { w->selectBlockDown(); }, true, tr("Select Block Down"),
QKeySequence(),
QKeySequence(tr("Ctrl+Shift+Alt+U")),
G_EDIT_BLOCKS, advancedEditMenu);
// register GOTO Actions