projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ruler: Moved calculate_tick_spacing into View
[pulseview.git]
/
pv
/
view
/
cursor.cpp
diff --git
a/pv/view/cursor.cpp
b/pv/view/cursor.cpp
index 03df054304f698132120674363f30d0753f5dde9..071967998eac0047d894bca3e8edf712af736878 100644
(file)
--- a/
pv/view/cursor.cpp
+++ b/
pv/view/cursor.cpp
@@
-74,12
+74,13
@@
QRectF Cursor::get_label_rect(const QRect &rect) const
label_size.width(), height);
}
label_size.width(), height);
}
-void Cursor::paint_label(QPainter &p, const QRect &rect,
- unsigned int prefix)
+void Cursor::paint_label(QPainter &p, const QRect &rect)
{
const shared_ptr<Cursor> other(get_other_cursor());
assert(other);
{
const shared_ptr<Cursor> other(get_other_cursor());
assert(other);
+ const unsigned int prefix = view_.tick_prefix();
+
compute_text_size(p, prefix);
const QRectF r(get_label_rect(rect));
compute_text_size(p, prefix);
const QRectF r(get_label_rect(rect));