Make sure PD row colors remain constant by adding a row index
[pulseview.git] / pv / data / decode / row.hpp
index 8105887450fcab824772fb050eb43da150e40ca8..2411d4f61afaa2344660429fc2b76348f034a269 100644 (file)
@@ -36,23 +36,25 @@ 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_;
 };
 
-} // decode
-} // data
-} // pv
+}  // namespace decode
+}  // namespace data
+}  // namespace pv
 
 #endif // PULSEVIEW_PV_DATA_DECODE_ROW_HPP