From: Joel Holdsworth Date: Sat, 8 Jun 2013 22:02:25 +0000 (+0100) Subject: Added sr_probe accessor function to pv::view::Signal X-Git-Tag: pulseview-0.2.0~309 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=632ba77ec49a10f482d7489b1a2d64dba2c2e705;p=pulseview.git Added sr_probe accessor function to pv::view::Signal --- diff --git a/pv/view/signal.cpp b/pv/view/signal.cpp index 0e1c7c72..45a8cd30 100644 --- a/pv/view/signal.cpp +++ b/pv/view/signal.cpp @@ -89,6 +89,11 @@ bool Signal::enabled() const return _probe->enabled; } +const sr_probe* Signal::probe() const +{ + return _probe; +} + void Signal::paint_axis(QPainter &p, int y, int left, int right) { p.setPen(SignalAxisPen); diff --git a/pv/view/signal.h b/pv/view/signal.h index ea336434..96172d77 100644 --- a/pv/view/signal.h +++ b/pv/view/signal.h @@ -62,6 +62,8 @@ public: */ bool enabled() const; + const sr_probe* probe() const; + protected: /**