forked from qt-creator/qt-creator
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user