aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/texteditoroverlay.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/texteditoroverlay.h')
-rw-r--r--src/plugins/texteditor/texteditoroverlay.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/texteditor/texteditoroverlay.h b/src/plugins/texteditor/texteditoroverlay.h
index e995f007c5d..d87a0fe7aab 100644
--- a/src/plugins/texteditor/texteditoroverlay.h
+++ b/src/plugins/texteditor/texteditoroverlay.h
@@ -92,14 +92,11 @@ public:
inline int dropShadowWidth() const { return m_dropShadowWidth; }
- bool hasCursorInSelection(const QTextCursor &cursor) const;
-
bool hasFirstSelectionBeginMoved() const;
protected:
- int selectionIndexForCursor(const QTextCursor &cursor) const;
- QString selectionText(int selectionIndex) const;
- QTextCursor assembleCursorForSelection(int selectionIndex) const;
+ QTextCursor cursorForSelection(const OverlaySelection &selection) const;
+ QTextCursor cursorForIndex(int selectionIndex) const;
private:
QPainterPath createSelectionPath(const QTextCursor &begin, const QTextCursor &end, const QRect& clip);