X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fheader.cpp;h=a7902521216a90655ba708669ab5b36b2886f52b;hp=ca5df96fca250dc23666bbdcf59f644a07083139;hb=8bd26d8b9c831b509ee3241ea4dac6f50c023622;hpb=d7c0ca4a965c5f9cb2ae9aea584bb2547f4baca1 diff --git a/pv/view/header.cpp b/pv/view/header.cpp index ca5df96f..a7902521 100644 --- a/pv/view/header.cpp +++ b/pv/view/header.cpp @@ -36,8 +36,11 @@ #include -using namespace boost; -using namespace std; +using boost::shared_ptr; +using std::max; +using std::make_pair; +using std::pair; +using std::vector; namespace pv { namespace view { @@ -56,6 +59,10 @@ Header::Header(View &parent) : connect(&_view, SIGNAL(signals_moved()), this, SLOT(on_signals_moved())); + + // Trigger the initial event manually. The default device has signals + // which were created before this object came into being + on_signals_changed(); } QSize Header::sizeHint() const