]> sigrok.org Git - pulseview.git/blobdiff - pv/view/viewport.cpp
SamplingBar: Show total sampling time in a tooltip.
[pulseview.git] / pv / view / viewport.cpp
index 145f040fc93be7413d23458e6383c971304073a8..3b06cf9e85e0bc31a5c8f4e7edba38be8aaaa119 100644 (file)
 
 #include <boost/foreach.hpp>
 
-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