]> sigrok.org Git - pulseview.git/blobdiff - pv/view/analogsignal.hpp
RowItem: Bundled painting parameters into RowItemPaintParams
[pulseview.git] / pv / view / analogsignal.hpp
index 5295fe32eed6f6229d62b3abb5a79f632a393787..c048371eeadd1973149017bd7f21f06abf79a1a7 100644 (file)
@@ -64,18 +64,16 @@ public:
        /**
         * Paints the background layer of the signal with a QPainter
         * @param p the QPainter to paint into.
-        * @param left the x-coordinate of the left edge of the signal.
-        * @param right the x-coordinate of the right edge of the signal.
+        * @param pp the painting parameters object to paint with..
         **/
-       void paint_back(QPainter &p, int left, int right);
+       void paint_back(QPainter &p, const RowItemPaintParams &pp);
 
        /**
         * Paints the mid-layer of the signal with a QPainter
         * @param p the QPainter to paint into.
-        * @param left the x-coordinate of the left edge of the signal.
-        * @param right the x-coordinate of the right edge of the signal.
+        * @param pp the painting parameters object to paint with..
         **/
-       void paint_mid(QPainter &p, int left, int right);
+       void paint_mid(QPainter &p, const RowItemPaintParams &pp);
 
 private:
        void paint_trace(QPainter &p,