summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-06-16 12:15:33 +0200
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-06-16 14:29:16 +0200
commitb76ebd66e0c4eef89ef3be4b25f103613fdeedf7 (patch)
treebcdea49a5915d3103b6223dd1fc5caa98f83e53a /src
parent86284e43a6aecf47066a195b77e67805eb8ee7ad (diff)
downloadqt-creator-b76ebd66e0c4eef89ef3be4b25f103613fdeedf7.tar.gz
Fixed the mouse cursor no longer turning into a hand above the mark area
Reviewed-by: mae Reviewed-by: con
Diffstat (limited to 'src')
-rw-r--r--src/plugins/texteditor/basetexteditor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp
index 0841fca82d..c5e8703df4 100644
--- a/src/plugins/texteditor/basetexteditor.cpp
+++ b/src/plugins/texteditor/basetexteditor.cpp
@@ -2770,6 +2770,13 @@ void BaseTextEditor::extraAreaMouseEvent(QMouseEvent *e)
}
}
+ // Set whether the mouse cursor is a hand or normal arrow
+ if (e->type() == QEvent::MouseMove) {
+ bool hand = (e->pos().x() <= markWidth);
+ if (hand != (d->m_extraArea->cursor().shape() == Qt::PointingHandCursor))
+ d->m_extraArea->setCursor(hand ? Qt::PointingHandCursor : Qt::ArrowCursor);
+ }
+
if (e->type() == QEvent::MouseButtonPress || e->type() == QEvent::MouseButtonDblClick) {
if (e->button() == Qt::LeftButton) {
int boxWidth = collapseBoxWidth(fontMetrics());