projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TimeMarker: Replaced time_changed signal with View::time_item_apparance_changed
[pulseview.git]
/
pv
/
view
/
view.cpp
diff --git
a/pv/view/view.cpp
b/pv/view/view.cpp
index 6cd274b0dc8f74605f480baaadfb61e7a725cfd3..d58e074a3ef72ec77bc3e75c3487dac627cbb15d 100644
(file)
--- a/
pv/view/view.cpp
+++ b/
pv/view/view.cpp
@@
-121,11
+121,6
@@
View::View(Session &session, QWidget *parent) :
connect(&session_, SIGNAL(frame_ended()),
this, SLOT(data_updated()));
connect(&session_, SIGNAL(frame_ended()),
this, SLOT(data_updated()));
- connect(cursors_->first().get(), SIGNAL(time_changed()),
- this, SLOT(marker_time_changed()));
- connect(cursors_->second().get(), SIGNAL(time_changed()),
- this, SLOT(marker_time_changed()));
-
connect(header_, SIGNAL(signals_moved()),
this, SLOT(on_signals_moved()));
connect(header_, SIGNAL(signals_moved()),
this, SLOT(on_signals_moved()));
@@
-607,7
+602,7
@@
void View::resizeEvent(QResizeEvent*)
update_layout();
}
update_layout();
}
-void View::appearance_changed(bool label, bool content)
+void View::
row_item_
appearance_changed(bool label, bool content)
{
if (label)
header_->update();
{
if (label)
header_->update();
@@
-615,6
+610,14
@@
void View::appearance_changed(bool label, bool content)
viewport_->update();
}
viewport_->update();
}
+void View::time_item_appearance_changed(bool label, bool content)
+{
+ if (label)
+ cursorheader_->update();
+ if (content)
+ viewport_->update();
+}
+
void View::extents_changed(bool horz, bool vert)
{
sticky_events_ |=
void View::extents_changed(bool horz, bool vert)
{
sticky_events_ |=
@@
-728,12
+731,6
@@
void View::data_updated()
viewport_->update();
}
viewport_->update();
}
-void View::marker_time_changed()
-{
- cursorheader_->update();
- viewport_->update();
-}
-
void View::on_signals_moved()
{
update_scroll();
void View::on_signals_moved()
{
update_scroll();