diff options
Diffstat (limited to 'src/views/mtexteditview.h')
-rw-r--r-- | src/views/mtexteditview.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/views/mtexteditview.h b/src/views/mtexteditview.h index 0feec8c7..f5f0cbaf 100644 --- a/src/views/mtexteditview.h +++ b/src/views/mtexteditview.h @@ -87,6 +87,14 @@ protected: */ int cursorPosition(const QPointF &hitPoint); + /*! + * \brief Returns cursor position from a mouse position + * \param hitPoint mouse position + * \param accuracy specified accuracy + * \return cursor position as characters from start of document + */ + int cursorPosition(const QPointF &hitPoint, Qt::HitTestAccuracy accuracy); + protected Q_SLOTS: /*! * \brief Set view focused |