]> sigrok.org Git - pulseview.git/commitdiff
Added sr_probe accessor function to pv::view::Signal
authorJoel Holdsworth <redacted>
Sat, 8 Jun 2013 22:02:25 +0000 (23:02 +0100)
committerJoel Holdsworth <redacted>
Sun, 29 Sep 2013 01:34:42 +0000 (10:34 +0900)
pv/view/signal.cpp
pv/view/signal.h

index 0e1c7c729c77c4693c32a0afd38663c5ff54026f..45a8cd30726f43e64fa681c85427464c7d2ad415 100644 (file)
@@ -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);
index ea336434f4ae5e7df9d39bfa61b610d067bd93f2..96172d77b3a439b761ccdf93e2de2d34cc14bb11 100644 (file)
@@ -62,6 +62,8 @@ public:
         */
        bool enabled() const;
 
+       const sr_probe* probe() const;
+
 protected:
 
        /**