]> sigrok.org Git - pulseview.git/commitdiff
Added selection_changed signal to pv::view::View
authorJoel Holdsworth <redacted>
Wed, 15 May 2013 15:57:27 +0000 (16:57 +0100)
committerJoel Holdsworth <redacted>
Sun, 19 May 2013 08:46:00 +0000 (09:46 +0100)
pv/view/view.cpp
pv/view/view.h

index b240af06c1514f0f763e7ce097b7bbcc50cf95b4..bc82e0b4c4a6c7ab2b9e9e5c3896c81fac66db92 100644 (file)
@@ -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);
 
index 0f5e254da4f12681dfff1f10621c91c0af1b9422..18da73224e952a8bae50421fa59735d21438e419 100644 (file)
@@ -115,6 +115,8 @@ signals:
 
        void signals_moved();
 
+       void selection_changed();
+
 private:
        void get_scroll_layout(double &length, double &offset) const;