Commit 09816369 authored by David Schulz's avatar David Schulz

HighlightScrollBar: Modernize overlay painting

Change-Id: I59da9b106204e27b202b08d0502052f3697c71a0
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
parent dd609237
......@@ -296,10 +296,8 @@ void HighlightScrollBarOverlay::paintEvent(QPaintEvent *paintEvent)
const auto highlightEnd = highlights.cend();
for (auto highlightIt = highlights.cbegin(); highlightIt != highlightEnd; ++highlightIt) {
const QColor &color = creatorTheme()->color(highlightIt.key());
for (int i = 0, total = highlightIt.value().size(); i < total; ++i) {
const QRect rect = highlightIt.value().at(i);
for (const QRect &rect : highlightIt.value())
painter.fillRect(rect, color);
}
}
}
......
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