Editor: Correctly unset block selection when setting a new text cursor.

Change-Id: I7d155140c55ed145cede217f3cc97064161a5a07
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
David Schulz
2015-04-21 12:36:11 +02:00
parent 5fd3fa917d
commit 7ce4958764
2 changed files with 14 additions and 16 deletions

View File

@@ -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,