projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DecodeTrace: Use qreal instead of int for annotation drawing
[pulseview.git]
/
pv
/
views
/
trace
/
tracegroup.cpp
diff --git
a/pv/views/trace/tracegroup.cpp
b/pv/views/trace/tracegroup.cpp
index daf0c6705c9861a5cabf0f02612cac2dce7eb18d..3fbb864e8bca07111d359718274d6b5bd1e23d5e 100644
(file)
--- a/
pv/views/trace/tracegroup.cpp
+++ b/
pv/views/trace/tracegroup.cpp
@@
-39,7
+39,7
@@
namespace trace {
const int TraceGroup::Padding = 8;
const int TraceGroup::Width = 12;
const int TraceGroup::LineThickness = 5;
const int TraceGroup::Padding = 8;
const int TraceGroup::Width = 12;
const int TraceGroup::LineThickness = 5;
-const QColor TraceGroup::LineColo
u
r(QColor(0x55, 0x57, 0x53));
+const QColor TraceGroup::LineColor(QColor(0x55, 0x57, 0x53));
TraceGroup::~TraceGroup()
{
TraceGroup::~TraceGroup()
{
@@
-104,10
+104,10
@@
void TraceGroup::paint_label(QPainter &p, const QRect &rect, bool hover)
p.drawPolyline(points, countof(points));
}
p.drawPolyline(points, countof(points));
}
- p.setPen(QPen(QBrush(LineColo
u
r.darker()), LineThickness,
+ p.setPen(QPen(QBrush(LineColor.darker()), LineThickness,
Qt::SolidLine, Qt::SquareCap, Qt::RoundJoin));
p.drawPolyline(points, countof(points));
Qt::SolidLine, Qt::SquareCap, Qt::RoundJoin));
p.drawPolyline(points, countof(points));
- p.setPen(QPen(QBrush(hover ? LineColo
ur.lighter() : LineColou
r),
+ p.setPen(QPen(QBrush(hover ? LineColo
r.lighter() : LineColo
r),
LineThickness - 2, Qt::SolidLine, Qt::SquareCap,
Qt::RoundJoin));
p.drawPolyline(points, countof(points));
LineThickness - 2, Qt::SolidLine, Qt::SquareCap,
Qt::RoundJoin));
p.drawPolyline(points, countof(points));