forked from qt-creator/qt-creator
Added feature for change note for bookmarks.
Task-number: QTCREATORBUG-5572 Change-Id: I12e84928e1c9d2b212991fafa7de99e0ec618d70 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
committed by
Daniel Teske
parent
f3194ee1ac
commit
d47b058c9b
@@ -4385,6 +4385,12 @@ void BaseTextEditorWidget::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) {
|
||||
//Find line by cursor position
|
||||
int line = cursor.blockNumber() + 1;
|
||||
emit editor()->markTooltipRequested(editor(), mapToGlobal(e->pos()), line);
|
||||
}
|
||||
|
||||
if (hand != (d->m_extraArea->cursor().shape() == Qt::PointingHandCursor))
|
||||
d->m_extraArea->setCursor(hand ? Qt::PointingHandCursor : Qt::ArrowCursor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user