projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added cursor dragging
[pulseview.git]
/
pv
/
view
/
view.cpp
diff --git
a/pv/view/view.cpp
b/pv/view/view.cpp
index 7d3dc7f628a73b9bd5e4be03d6c8a6e45e33dfb2..d2f708e5e103d5642d1af1de46f9a30a3ce68073 100644
(file)
--- a/
pv/view/view.cpp
+++ b/
pv/view/view.cpp
@@
-77,6
+77,11
@@
View::View(SigSession &session, QWidget *parent) :
connect(&_session, SIGNAL(data_updated()),
this, SLOT(data_updated()));
connect(&_session, SIGNAL(data_updated()),
this, SLOT(data_updated()));
+ connect(&_cursors.first, SIGNAL(time_changed()),
+ this, SLOT(marker_time_changed()));
+ connect(&_cursors.second, SIGNAL(time_changed()),
+ this, SLOT(marker_time_changed()));
+
setViewportMargins(LabelMarginWidth, RulerHeight, 0, 0);
setViewport(_viewport);
setViewportMargins(LabelMarginWidth, RulerHeight, 0, 0);
setViewport(_viewport);
@@
-286,5
+291,11
@@
void View::data_updated()
_viewport->update();
}
_viewport->update();
}
+void View::marker_time_changed()
+{
+ _ruler->update();
+ _viewport->update();
+}
+
} // namespace view
} // namespace pv
} // namespace view
} // namespace pv