projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce pv::data::SignalBase
[pulseview.git]
/
pv
/
view
/
timemarker.cpp
diff --git
a/pv/view/timemarker.cpp
b/pv/view/timemarker.cpp
index 8c136a18189285e3a965af58e49ad0642f002b87..b5662e4b6ba32e3ec6b90945f11799cf68cc59ce 100644
(file)
--- a/
pv/view/timemarker.cpp
+++ b/
pv/view/timemarker.cpp
@@
-95,11
+95,11
@@
QRectF TimeMarker::label_rect(const QRectF &rect) const
return QRectF(QPointF(x - label_size.width() / 2, top), label_size);
}
return QRectF(QPointF(x - label_size.width() / 2, top), label_size);
}
-QRectF TimeMarker::hit_box_rect(const
QRectF &rect
) const
+QRectF TimeMarker::hit_box_rect(const
ViewItemPaintParams &pp
) const
{
const float x = get_x();
const float h = QFontMetrics(QApplication::font()).height();
{
const float x = get_x();
const float h = QFontMetrics(QApplication::font()).height();
- return QRectF(x - h / 2.0f,
rect.top(), h, rect
.height());
+ return QRectF(x - h / 2.0f,
pp.top(), h, pp
.height());
}
void TimeMarker::paint_label(QPainter &p, const QRect &rect, bool hover)
}
void TimeMarker::paint_label(QPainter &p, const QRect &rect, bool hover)