summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/codeassist
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@digia.com>2014-06-16 14:20:36 +0200
committerhjk <hjk121@nokiamail.com>2014-06-20 13:16:54 +0200
commit6e9b7240066e3ec9f5798136bee0dce3a472716e (patch)
treeda76d2994163fd6f768c168008ad375f3e94ecc2 /src/plugins/texteditor/codeassist
parentce324b8d28c51188672dc48d70d6e21a0adc8610 (diff)
downloadqt-creator-6e9b7240066e3ec9f5798136bee0dce3a472716e.tar.gz
Editor: Blockselection rewrite.
Also adding the possibility to insert text into the blockselection. Task-number: QTCREATORBUG-7773 Change-Id: I7a47a1d630f769a8253ee1a2f21057820ea170d5 Reviewed-by: Lukas Holecek <hluk@email.cz> Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/texteditor/codeassist')
-rw-r--r--src/plugins/texteditor/codeassist/codeassistant.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/texteditor/codeassist/codeassistant.cpp b/src/plugins/texteditor/codeassist/codeassistant.cpp
index 58caa1e4ab..c4b8ac0d07 100644
--- a/src/plugins/texteditor/codeassist/codeassistant.cpp
+++ b/src/plugins/texteditor/codeassist/codeassistant.cpp
@@ -248,6 +248,9 @@ void CodeAssistantPrivate::requestProposal(AssistReason reason,
{
QTC_ASSERT(!isWaitingForProposal(), return);
+ if (m_textEditor->editorWidget()->hasBlockSelection())
+ return; // TODO
+
if (!provider) {
if (kind == Completion)
provider = m_completionProvider;