summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@theqtcompany.com>2016-02-02 09:47:03 +0100
committerhjk <hjk@theqtcompany.com>2016-02-02 09:10:13 +0000
commit182bd0b34e3c10f2adc5823e84ae5062c3fc9965 (patch)
tree14e7569f92acdce2331bfc60c2bd50554204608f
parent0532c947587f246fda285253788e1fcbf5da1ef6 (diff)
downloadqt-creator-182bd0b34e3c10f2adc5823e84ae5062c3fc9965.tar.gz
Editor: Fix compiling of editor overlay.
Introduced by 0532c947587f246fda285253788e1fcbf5da1ef6 . Change-Id: Ia10c09a44012649ffab4fa35d0f1ac20d2233474 Reviewed-by: hjk <hjk@theqtcompany.com>
-rw-r--r--src/plugins/texteditor/texteditoroverlay.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/texteditoroverlay.cpp b/src/plugins/texteditor/texteditoroverlay.cpp
index e7f41f0d12..43696712fe 100644
--- a/src/plugins/texteditor/texteditoroverlay.cpp
+++ b/src/plugins/texteditor/texteditoroverlay.cpp
@@ -93,9 +93,9 @@ void TextEditorOverlay::addOverlaySelection(int begin, int end,
selection.m_bg = bg;
selection.m_cursor_begin = QTextCursor(document);
- selection.m_cursor_begin.setPos(begin);
+ selection.m_cursor_begin.setPosition(begin);
selection.m_cursor_end = QTextCursor(document);
- selection.m_cursor_end.setPos(end);
+ selection.m_cursor_end.setPosition(end);
if (overlaySelectionFlags & ExpandBegin)
selection.m_cursor_begin.setKeepPositionOnInsert(true);