]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/standardbar.cpp
Implement showing only the selected segment
[pulseview.git] / pv / views / trace / standardbar.cpp
index fa04c8e2318bf40e63f896abc8b345509e7ecbc2..e2d6f3e2b540c7d201208329f6a3958b6ec7b29d 100644 (file)
@@ -86,8 +86,11 @@ StandardBar::StandardBar(Session &session, QWidget *parent,
        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(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)));