]> sigrok.org Git - pulseview.git/blobdiff - pv/view/decodesignal.h
Added decode error display
[pulseview.git] / pv / view / decodesignal.h
index e95c982225f92e9e126d0c40b0850f5dbeaed1fd..efa3449575942e1a4b69170276c3094b770c8256 100644 (file)
@@ -39,6 +39,7 @@ class DecodeSignal : public Trace
 
 private:
        static const QColor DecodeColours[4];
+       static const QColor ErrorBgColour;
 
 public:
        DecodeSignal(pv::SigSession &session,
@@ -71,12 +72,8 @@ public:
        void delete_pressed();
 
 private:
-
-       /**
-        * When painting into the rectangle, calculate the y
-        * offset of the zero point.
-        **/
-       int get_nominal_offset(const QRect &rect) const;
+       void draw_error(QPainter &p, const QString &message,
+               int left, int right);
 
 private slots:
        void on_new_decode_data();