X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Ftimemarker.cpp;h=399664675bd83b61c40ec484e8aa4842705625ad;hb=0ce3d18c04b989eeae55d5a82d133a2d154ad6c1;hp=ed9df36064f74407b1a1ee81f80d11378adbc81c;hpb=98cfe4e8dadad2cf710eb46fd5c85d9d0520a875;p=pulseview.git diff --git a/pv/view/timemarker.cpp b/pv/view/timemarker.cpp index ed9df36..3996646 100644 --- a/pv/view/timemarker.cpp +++ b/pv/view/timemarker.cpp @@ -100,7 +100,7 @@ QRectF TimeMarker::label_rect(const QRectF &rect) const label_size.width(), height); } -void TimeMarker::paint_label(QPainter &p, const QRect &rect) +void TimeMarker::paint_label(QPainter &p, const QRect &rect, bool hover) { if (!enabled()) return; @@ -136,7 +136,7 @@ void TimeMarker::paint_label(QPainter &p, const QRect &rect) } p.setPen(Qt::transparent); - p.setBrush(colour_); + p.setBrush(hover ? colour_.lighter() : colour_); p.drawPolygon(points, countof(points)); p.setPen(colour_.lighter());