Initialise Trace widgets when the trace is received by the View
[pulseview.git] / pv / view / analogsignal.cpp
index fff11f12eacfc368d914a145b52940b4ea501598..6aeef98a57aa14f474e7b7d0fdcacbae8158a07a 100644 (file)
@@ -41,9 +41,9 @@ const QColor AnalogSignal::SignalColours[4] = {
 
 const float AnalogSignal::EnvelopeThreshold = 256.0f;
 
-AnalogSignal::AnalogSignal(const sr_probe *const probe,
+AnalogSignal::AnalogSignal(pv::SigSession &session, const sr_probe *const probe,
        shared_ptr<data::Analog> data) :
-       Signal(probe),
+       Signal(session, probe),
        _data(data),
        _scale(1.0f)
 {
@@ -57,6 +57,7 @@ AnalogSignal::~AnalogSignal()
 const list<QAction*> AnalogSignal::get_context_bar_actions()
 {
        list<QAction*> actions;
+       actions.push_back(_name_action);
        return actions;
 }