X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fviewport.cpp;h=bc010b4bd02fa3cd11270397c87e2588df2af461;hb=3eb29afdb641606c2e2e059289d8cc103d027a25;hp=a94ada93faac055aae26761941e515b3318288a7;hpb=f65cd27bdbf70644052dd43dac4bbe9403f4dfee;p=pulseview.git diff --git a/pv/view/viewport.cpp b/pv/view/viewport.cpp index a94ada9..bc010b4 100644 --- a/pv/view/viewport.cpp +++ b/pv/view/viewport.cpp @@ -22,6 +22,7 @@ #include #include +#include "rowitempaintparams.hpp" #include "signal.hpp" #include "view.hpp" #include "viewport.hpp" @@ -69,18 +70,20 @@ void Viewport::paintEvent(QPaintEvent*) if (view_.cursors_shown()) view_.cursors().draw_viewport_background(p, rect()); + const RowItemPaintParams pp(0, width()); + // Plot the signal for (const shared_ptr r : row_items) { assert(r); - r->paint_back(p, 0, width()); + r->paint_back(p, pp); } for (const shared_ptr r : row_items) - r->paint_mid(p, 0, width()); + r->paint_mid(p, pp); for (const shared_ptr r : row_items) - r->paint_fore(p, 0, width()); + r->paint_fore(p, pp); if (view_.cursors_shown()) view_.cursors().draw_viewport_foreground(p, rect());