From: Joel Holdsworth Date: Mon, 13 May 2013 21:53:26 +0000 (+0100) Subject: Added selection_changed signal to Ruler and Header X-Git-Tag: pulseview-0.2.0~351 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b2a53645cfc81baae2bec80aaf6f10e69172d257;p=pulseview.git Added selection_changed signal to Ruler and Header --- diff --git a/pv/view/header.cpp b/pv/view/header.cpp index cb161a69..d9f6666d 100644 --- a/pv/view/header.cpp +++ b/pv/view/header.cpp @@ -160,6 +160,7 @@ void Header::mousePressEvent(QMouseEvent *event) s->select(false); } + selection_changed(); update(); } diff --git a/pv/view/marginwidget.h b/pv/view/marginwidget.h index 6f2effcf..8fbebcf4 100644 --- a/pv/view/marginwidget.h +++ b/pv/view/marginwidget.h @@ -38,6 +38,9 @@ public: public slots: virtual void clear_selection() = 0; +signals: + void selection_changed(); + protected: pv::view::View &_view; }; diff --git a/pv/view/ruler.cpp b/pv/view/ruler.cpp index 049cc4af..09c85c64 100644 --- a/pv/view/ruler.cpp +++ b/pv/view/ruler.cpp @@ -202,6 +202,8 @@ void Ruler::mousePressEvent(QMouseEvent *e) rect()).contains(e->pos())) _grabbed_marker = &cursors.second(); } + + selection_changed(); } }