]> sigrok.org Git - pulseview.git/blobdiff - pv/view/signal.h
Link signals to probes
[pulseview.git] / pv / view / signal.h
index 250d3ff36bf04c90ba542629e062f3aba8d99cd2..b53d05393e814e28e1212a0862c0309823ae992c 100644 (file)
@@ -31,6 +31,8 @@
 
 #include <stdint.h>
 
+#include <libsigrok/libsigrok.h>
+
 namespace pv {
 
 namespace data {
@@ -48,7 +50,7 @@ private:
        static const QPen SignalAxisPen;
 
 protected:
-       Signal(QString name);
+       Signal(const sr_probe *const probe);
 
 public:
        /**
@@ -156,6 +158,8 @@ private:
        QRectF get_label_rect(int y, int right);
 
 protected:
+       const sr_probe *const _probe;
+
        QString _name;
        QColor _colour;
        int _v_offset;