X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fviewport.cpp;h=556babcc94435de43d98cd833914f751430d9a97;hb=d4e39570ee6021766c375654801dddba45b9198a;hp=bc010b4bd02fa3cd11270397c87e2588df2af461;hpb=3eb29afdb641606c2e2e059289d8cc103d027a25;p=pulseview.git diff --git a/pv/view/viewport.cpp b/pv/view/viewport.cpp index bc010b4b..556babcc 100644 --- a/pv/view/viewport.cpp +++ b/pv/view/viewport.cpp @@ -22,9 +22,9 @@ #include #include -#include "rowitempaintparams.hpp" #include "signal.hpp" #include "view.hpp" +#include "viewitempaintparams.hpp" #include "viewport.hpp" #include @@ -68,9 +68,9 @@ void Viewport::paintEvent(QPaintEvent*) p.setRenderHint(QPainter::Antialiasing); if (view_.cursors_shown()) - view_.cursors().draw_viewport_background(p, rect()); + view_.cursors()->draw_viewport_background(p, rect()); - const RowItemPaintParams pp(0, width()); + const ViewItemPaintParams pp(0, width(), view_.scale(), view_.offset()); // Plot the signal for (const shared_ptr r : row_items) @@ -86,7 +86,7 @@ void Viewport::paintEvent(QPaintEvent*) r->paint_fore(p, pp); if (view_.cursors_shown()) - view_.cursors().draw_viewport_foreground(p, rect()); + view_.cursors()->draw_viewport_foreground(p, rect()); p.end(); }