From b2a53645cfc81baae2bec80aaf6f10e69172d257 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Mon, 13 May 2013 22:53:26 +0100 Subject: [PATCH] Added selection_changed signal to Ruler and Header --- pv/view/header.cpp | 1 + pv/view/marginwidget.h | 3 +++ pv/view/ruler.cpp | 2 ++ 3 files changed, 6 insertions(+) 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(); } } -- 2.30.2