X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fviewport.cpp;h=3b06cf9e85e0bc31a5c8f4e7edba38be8aaaa119;hb=744905d4ec6a05b53c17efb393a0ef907d95ebe2;hp=145f040fc93be7413d23458e6383c971304073a8;hpb=903038a8c9496b23d29535dd8c41a6c207c0831b;p=pulseview.git diff --git a/pv/view/viewport.cpp b/pv/view/viewport.cpp index 145f040..3b06cf9 100644 --- a/pv/view/viewport.cpp +++ b/pv/view/viewport.cpp @@ -28,8 +28,10 @@ #include -using namespace boost; -using namespace std; +using boost::shared_ptr; +using std::max; +using std::min; +using std::vector; namespace pv { namespace view { @@ -47,6 +49,10 @@ Viewport::Viewport(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(); } int Viewport::get_total_height() const