Make sure PD row colors remain constant by adding a row index
[pulseview.git] / pv / data / decode / row.hpp
index 5ddd10d3318fb2b0c9e0d399fa8b83915164d45f..2411d4f61afaa2344660429fc2b76348f034a269 100644 (file)
@@ -36,17 +36,19 @@ class Row
 public:
        Row();
 
-       Row(const srd_decoder *decoder,
+       Row(int index, const srd_decoder *decoder,
                const srd_decoder_annotation_row *row = nullptr);
 
        const srd_decoder* decoder() const;
        const srd_decoder_annotation_row* row() const;
 
        const QString title() const;
+       int index() const;
 
        bool operator<(const Row &other) const;
 
 private:
+       int index_;
        const srd_decoder *decoder_;
        const srd_decoder_annotation_row *row_;
 };