X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fanalogsignal.hpp;h=c048371eeadd1973149017bd7f21f06abf79a1a7;hb=99503171d4f32570829df171521b4b9cbccb0503;hp=91a8e5c2810665ea6a4f445b187426d0d66d5343;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329;p=pulseview.git diff --git a/pv/view/analogsignal.hpp b/pv/view/analogsignal.hpp index 91a8e5c..c048371 100644 --- a/pv/view/analogsignal.hpp +++ b/pv/view/analogsignal.hpp @@ -43,7 +43,7 @@ private: static const float EnvelopeThreshold; public: - AnalogSignal(pv::SigSession &session, + AnalogSignal(pv::Session &session, std::shared_ptr channel, std::shared_ptr data); @@ -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,