projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Trace: Converted on_hover_point_changed signal to direct notification
[pulseview.git]
/
pv
/
view
/
view.cpp
diff --git
a/pv/view/view.cpp
b/pv/view/view.cpp
index 1f1bd9acea32cd54c2873f5f1f8259d6f852ce0f..af0892b81d1fb4d85003b179ce38f99d72369676 100644
(file)
--- a/
pv/view/view.cpp
+++ b/
pv/view/view.cpp
@@
-119,6
+119,9
@@
View::View(SigSession &session, QWidget *parent) :
connect(_cursorheader, SIGNAL(selection_changed()),
this, SIGNAL(selection_changed()));
connect(_cursorheader, SIGNAL(selection_changed()),
this, SIGNAL(selection_changed()));
+ connect(this, SIGNAL(hover_point_changed()),
+ this, SLOT(on_hover_point_changed()));
+
setViewport(_viewport);
_viewport->installEventFilter(this);
setViewport(_viewport);
_viewport->installEventFilter(this);
@@
-562,5
+565,12
@@
void View::on_geometry_updated()
update_layout();
}
update_layout();
}
+void View::on_hover_point_changed()
+{
+ const vector< shared_ptr<Trace> > traces(get_traces());
+ for (shared_ptr<Trace> t : traces)
+ t->hover_point_changed();
+}
+
} // namespace view
} // namespace pv
} // namespace view
} // namespace pv