From: Joel Holdsworth Date: Wed, 15 May 2013 15:57:27 +0000 (+0100) Subject: Added selection_changed signal to pv::view::View X-Git-Tag: pulseview-0.2.0~349 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8b454527dc987d552b189099ee61cf699095aa7e;p=pulseview.git Added selection_changed signal to pv::view::View --- diff --git a/pv/view/view.cpp b/pv/view/view.cpp index b240af06..bc82e0b4 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -98,6 +98,11 @@ View::View(SigSession &session, QWidget *parent) : connect(_ruler, SIGNAL(selection_changed()), _header, SLOT(clear_selection())); + connect(_header, SIGNAL(selection_changed()), + this, SIGNAL(selection_changed())); + connect(_ruler, SIGNAL(selection_changed()), + this, SIGNAL(selection_changed())); + setViewportMargins(LabelMarginWidth, RulerHeight, 0, 0); setViewport(_viewport); diff --git a/pv/view/view.h b/pv/view/view.h index 0f5e254d..18da7322 100644 --- a/pv/view/view.h +++ b/pv/view/view.h @@ -115,6 +115,8 @@ signals: void signals_moved(); + void selection_changed(); + private: void get_scroll_layout(double &length, double &offset) const;