]> sigrok.org Git - pulseview.git/commitdiff
Added selection_changed signal to Ruler and Header
authorJoel Holdsworth <redacted>
Mon, 13 May 2013 21:53:26 +0000 (22:53 +0100)
committerJoel Holdsworth <redacted>
Sun, 19 May 2013 08:46:00 +0000 (09:46 +0100)
pv/view/header.cpp
pv/view/marginwidget.h
pv/view/ruler.cpp

index cb161a6961ad0cd3aa164f9bbb0523e0fbfbd651..d9f6666d266d0d420563c3a66b7dd58c0128061c 100644 (file)
@@ -160,6 +160,7 @@ void Header::mousePressEvent(QMouseEvent *event)
                                s->select(false);
        }
 
+       selection_changed();
        update();
 }
 
index 6f2effcffbb462333d1fce5d1989fa80daefdf50..8fbebcf4089643ec923ec9eae5df72f1845d6078 100644 (file)
@@ -38,6 +38,9 @@ public:
 public slots:
        virtual void clear_selection() = 0;
 
+signals:
+       void selection_changed();
+
 protected:
        pv::view::View &_view;
 };
index 049cc4af196a8c2203d0ef3ee285e9fa33f17a84..09c85c6451c37a3ea888783e949f2dd2937fe0d3 100644 (file)
@@ -202,6 +202,8 @@ void Ruler::mousePressEvent(QMouseEvent *e)
                                rect()).contains(e->pos()))
                                _grabbed_marker = &cursors.second();
                }
+
+               selection_changed();
        }
 }