projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
INSTALL: Mention missing dependency libboost-filesystem.
[pulseview.git]
/
pv
/
view
/
viewport.cpp
diff --git
a/pv/view/viewport.cpp
b/pv/view/viewport.cpp
index 145f040fc93be7413d23458e6383c971304073a8..3b06cf9e85e0bc31a5c8f4e7edba38be8aaaa119 100644
(file)
--- a/
pv/view/viewport.cpp
+++ b/
pv/view/viewport.cpp
@@
-28,8
+28,10
@@
#include <boost/foreach.hpp>
#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 {
namespace pv {
namespace view {
@@
-47,6
+49,10
@@
Viewport::Viewport(View &parent) :
connect(&_view, SIGNAL(signals_moved()),
this, SLOT(on_signals_moved()));
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
}
int Viewport::get_total_height() const