Commit 1705fb86 authored by Daniel Teske's avatar Daniel Teske
Browse files

Editor: Make Quick Fix icon clickable in scrolled views

Task-number: QTCREATORBUG-3423
Change-Id: I708302b94caa9ad50fc0e7f65a635a7ec4f753d4
Reviewed-by: default avatarEike Ziller <>
parent 972603e8
...@@ -59,9 +59,8 @@ void RefactorOverlay::paint(QPainter *painter, const QRect &clip) ...@@ -59,9 +59,8 @@ void RefactorOverlay::paint(QPainter *painter, const QRect &clip)
RefactorMarker RefactorOverlay::markerAt(const QPoint &pos) const RefactorMarker RefactorOverlay::markerAt(const QPoint &pos) const
{ {
QPointF offset = m_editor->contentOffset();
foreach (const RefactorMarker &marker, m_markers) { foreach (const RefactorMarker &marker, m_markers) {
if (marker.rect.translated(offset.toPoint()).contains(pos)) if (marker.rect.contains(pos))
return marker; return marker;
} }
return RefactorMarker(); return RefactorMarker();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment