]> sigrok.org Git - pulseview.git/blobdiff - pv/data/segment.hpp
Supply the segment ID when adding samples to optimize trace painting
[pulseview.git] / pv / data / segment.hpp
index 18f1aed77192978ce1a87cbb86aaf7b929672f73..9ea9629dcbd0d8e294b07f46c81573a9fc2c4681 100644 (file)
@@ -27,6 +27,8 @@
 #include <thread>
 #include <vector>
 
+#include <QObject>
+
 using std::recursive_mutex;
 using std::vector;
 
@@ -52,8 +54,10 @@ typedef struct {
        uint8_t* value;
 } SegmentRawDataIterator;
 
-class Segment
+class Segment : public QObject
 {
+       Q_OBJECT
+
 private:
        static const uint64_t MaxChunkSize;