summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/texteditor.h
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@theqtcompany.com>2015-04-21 12:36:11 +0200
committerDavid Schulz <david.schulz@theqtcompany.com>2015-05-21 07:29:55 +0000
commit7ce495876448b2438e796f2fd00a499a386ded49 (patch)
tree4af6756bf71611c673d075c93a77c7a842ac7402 /src/plugins/texteditor/texteditor.h
parent5fd3fa917dd9c43d49d30658dbb8276829b90326 (diff)
downloadqt-creator-7ce495876448b2438e796f2fd00a499a386ded49.tar.gz
Editor: Correctly unset block selection when setting a new text cursor.
Change-Id: I7d155140c55ed145cede217f3cc97064161a5a07 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'src/plugins/texteditor/texteditor.h')
-rw-r--r--src/plugins/texteditor/texteditor.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/texteditor/texteditor.h b/src/plugins/texteditor/texteditor.h
index 8fa094d14c..9df1fab3a4 100644
--- a/src/plugins/texteditor/texteditor.h
+++ b/src/plugins/texteditor/texteditor.h
@@ -284,9 +284,6 @@ public:
void setReadOnly(bool b);
- void setTextCursor(const QTextCursor &cursor, bool keepBlockSelection);
- void setTextCursor(const QTextCursor &cursor);
-
void insertCodeSnippet(const QTextCursor &cursor, const QString &snippet);
void setBlockSelection(bool on);
@@ -605,7 +602,8 @@ protected:
QPointF offset,
const QRect &clip);
int visibleFoldedBlockNumber() const;
-
+ void doSetTextCursor(const QTextCursor &cursor) override;
+ void doSetTextCursor(const QTextCursor &cursor, bool keepBlockSelection);
signals:
void markRequested(TextEditor::TextEditorWidget *widget,