projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TraceView: Make header resize state determination reliable
[pulseview.git]
/
pv
/
views
/
trace
/
standardbar.cpp
diff --git
a/pv/views/trace/standardbar.cpp
b/pv/views/trace/standardbar.cpp
index fa04c8e2318bf40e63f896abc8b345509e7ecbc2..e2d6f3e2b540c7d201208329f6a3958b6ec7b29d 100644
(file)
--- a/
pv/views/trace/standardbar.cpp
+++ b/
pv/views/trace/standardbar.cpp
@@
-86,8
+86,11
@@
StandardBar::StandardBar(Session &session, QWidget *parent,
action_view_show_cursors_->setText(tr("Show &Cursors"));
segment_selector_->setMinimum(1);
action_view_show_cursors_->setText(tr("Show &Cursors"));
segment_selector_->setMinimum(1);
+ segment_selector_->hide();
connect(&session_, SIGNAL(frame_ended()),
this, SLOT(on_segment_added()));
connect(&session_, SIGNAL(frame_ended()),
this, SLOT(on_segment_added()));
+ connect(segment_selector_, SIGNAL(valueChanged(int)),
+ view_, SLOT(on_segment_changed(int)));
connect(view_, SIGNAL(always_zoom_to_fit_changed(bool)),
this, SLOT(on_always_zoom_to_fit_changed(bool)));
connect(view_, SIGNAL(always_zoom_to_fit_changed(bool)),
this, SLOT(on_always_zoom_to_fit_changed(bool)));