projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SelectableItem: Moved in enabled(), and added to TriggerMarkers
[pulseview.git]
/
pv
/
view
/
cursor.cpp
diff --git
a/pv/view/cursor.cpp
b/pv/view/cursor.cpp
index 6a4733112fbb6882edf3d281aed570cd5f19f538..f4a5df6f10f4b2e5321b97be12d3d1d825e0a116 100644
(file)
--- a/
pv/view/cursor.cpp
+++ b/
pv/view/cursor.cpp
@@
-45,6
+45,11
@@
Cursor::Cursor(View &view, double time) :
{
}
+bool Cursor::enabled() const
+{
+ return view_.cursors_shown();
+}
+
QString Cursor::get_text() const
{
return pv::util::format_time(time_, view_.tick_prefix(), 2);