-Signal::Signal(pv::SigSession &session, sr_probe *const probe) :
- Trace(session, probe->name),
- _probe(probe),
- _name_widget(NULL),
- _updating_name_widget(false)
+Signal::Signal(pv::Session &session,
+ std::shared_ptr<sigrok::Channel> channel) :
+ Trace(QString::fromUtf8(channel->name().c_str())),
+ session_(session),
+ channel_(channel),
+ scale_handle_(make_shared<SignalScaleHandle>(*this)),
+ items_({scale_handle_}),
+ name_widget_(nullptr),
+ updating_name_widget_(false)