-Signal::Signal(shared_ptr<pv::device::DevInst> dev_inst,
- const sr_channel *const probe) :
- Trace(probe->name),
- _dev_inst(dev_inst),
- _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)