X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fheader.cpp;h=cb161a6961ad0cd3aa164f9bbb0523e0fbfbd651;hb=a2ae0205f2737dfd8f7647f9eae2fdcb47a0ad25;hp=6d016fe0b441aa832a504e64704fd564ac67d59c;hpb=2c982fc3905ef4d4fa1d87761d3ac14841f01de1;p=pulseview.git diff --git a/pv/view/header.cpp b/pv/view/header.cpp index 6d016fe..cb161a6 100644 --- a/pv/view/header.cpp +++ b/pv/view/header.cpp @@ -43,8 +43,7 @@ namespace pv { namespace view { Header::Header(View &parent) : - QWidget(&parent), - _view(parent), + MarginWidget(parent), _action_set_name(new QAction(tr("Set &Name..."), this)), _action_set_colour(new QAction(tr("Set &Colour..."), this)) { @@ -79,6 +78,18 @@ boost::shared_ptr Header::get_mouse_over_signal( return shared_ptr(); } +void Header::clear_selection() +{ + const vector< shared_ptr > sigs( + _view.session().get_signals()); + BOOST_FOREACH(const shared_ptr s, sigs) { + assert(s); + s->select(false); + } + + update(); +} + void Header::paintEvent(QPaintEvent*) { const int w = width();