From 182bd0b34e3c10f2adc5823e84ae5062c3fc9965 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 2 Feb 2016 09:47:03 +0100 Subject: [PATCH] Editor: Fix compiling of editor overlay. Introduced by 0532c947587f246fda285253788e1fcbf5da1ef6 . Change-Id: Ia10c09a44012649ffab4fa35d0f1ac20d2233474 Reviewed-by: hjk --- src/plugins/texteditor/texteditoroverlay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/texteditor/texteditoroverlay.cpp b/src/plugins/texteditor/texteditoroverlay.cpp index e7f41f0d129..43696712fe6 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);