projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
View: Determine time unit and use it in other classes
[pulseview.git]
/
pv
/
view
/
cursor.cpp
diff --git
a/pv/view/cursor.cpp
b/pv/view/cursor.cpp
index 503031a7fbe592d4aa01b4873ca12de7c2d4966b..2f2bc482f22cc567c408723cd6eb8eedd651df32 100644
(file)
--- a/
pv/view/cursor.cpp
+++ b/
pv/view/cursor.cpp
@@
-56,7
+56,7
@@
bool Cursor::enabled() const
QString Cursor::get_text() const
{
return util::format_time(time_, view_.tick_prefix(),
-
util::TimeUnit::Time
, 2);
+
view_.time_unit()
, 2);
}
QRectF Cursor::label_rect(const QRectF &rect) const