From ad1d8e2b737106c3210706a8ee8c537dbd438bfb Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sun, 31 Mar 2013 09:29:30 +0100 Subject: [PATCH] Set the colour of the ruler hover marker to the correct palette colour --- pv/view/ruler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pv/view/ruler.cpp b/pv/view/ruler.cpp index adab57db..eb658e48 100644 --- a/pv/view/ruler.cpp +++ b/pv/view/ruler.cpp @@ -223,7 +223,7 @@ void Ruler::draw_hover_mark(QPainter &p) return; p.setPen(QPen(Qt::NoPen)); - p.setBrush(QBrush(QColor(Qt::black))); + p.setBrush(QBrush(palette().color(foregroundRole()))); const int b = height() - 1; const QPointF points[] = { -- 2.30.2