X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fviewport.cpp;h=8cf97ff58020594b2e6c82290589a70112b260e0;hp=06fab904e75168fab06a9499574446959c93e9a3;hb=fe08b6e8a85c80ae738757f7d85aa38ef7c4bdc3;hpb=9472f4476b27336e9187635015169e308bfe8af7 diff --git a/pv/view/viewport.cpp b/pv/view/viewport.cpp index 06fab90..8cf97ff 100644 --- a/pv/view/viewport.cpp +++ b/pv/view/viewport.cpp @@ -72,9 +72,15 @@ void Viewport::paintEvent(QPaintEvent*) BOOST_FOREACH(const shared_ptr t, traces) { assert(t); - t->paint(p, 0, width()); + t->paint_back(p, 0, width()); } + BOOST_FOREACH(const shared_ptr t, traces) + t->paint_mid(p, 0, width()); + + BOOST_FOREACH(const shared_ptr t, traces) + t->paint_fore(p, 0, width()); + if (_view.cursors_shown()) _view.cursors().draw_viewport_foreground(p, rect());