projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Header/Viewport: Manually trigger the signals_changed event at construction
[pulseview.git]
/
pv
/
view
/
header.cpp
diff --git
a/pv/view/header.cpp
b/pv/view/header.cpp
index ca5df96fca250dc23666bbdcf59f644a07083139..a7902521216a90655ba708669ab5b36b2886f52b 100644
(file)
--- a/
pv/view/header.cpp
+++ b/
pv/view/header.cpp
@@
-36,8
+36,11
@@
#include <pv/widgets/popup.h>
#include <pv/widgets/popup.h>
-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 {
namespace pv {
namespace view {
@@
-56,6
+59,10
@@
Header::Header(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();
}
QSize Header::sizeHint() const
}
QSize Header::sizeHint() const