]> sigrok.org Git - pulseview.git/blobdiff - pv/view/decodetrace.hpp
Rework signaling mechanism for trace repainting
[pulseview.git] / pv / view / decodetrace.hpp
index 3103a3c02ce4910556a68c1d28c96b976d797b47..c4cb6fa553015b48a3f977d49629a3fe8b08830e 100644 (file)
@@ -30,8 +30,8 @@
 #include <QSignalMapper>
 
 #include <pv/binding/decoder.hpp>
-#include <pv/data/signalbase.hpp>
 #include <pv/data/decode/row.hpp>
+#include <pv/data/signalbase.hpp>
 
 using std::list;
 using std::map;
@@ -112,21 +112,21 @@ public:
         * @param p the QPainter to paint into.
         * @param pp the painting parameters object to paint with..
         */
-       void paint_back(QPainter &p, const ViewItemPaintParams &pp);
+       void paint_back(QPainter &p, ViewItemPaintParams &pp);
 
        /**
         * Paints the mid-layer of the trace with a QPainter
         * @param p the QPainter to paint into.
         * @param pp the painting parameters object to paint with.
         */
-       void paint_mid(QPainter &p, const ViewItemPaintParams &pp);
+       void paint_mid(QPainter &p, ViewItemPaintParams &pp);
 
        /**
         * Paints the foreground layer of the trace with a QPainter
         * @param p the QPainter to paint into.
         * @param pp the painting parameters object to paint with.
         */
-       void paint_fore(QPainter &p, const ViewItemPaintParams &pp);
+       void paint_fore(QPainter &p, ViewItemPaintParams &pp);
 
        void populate_popup_form(QWidget *parent, QFormLayout *form);
 
@@ -182,8 +182,7 @@ private:
                const shared_ptr<pv::data::decode::Decoder> &dec,
                const srd_channel *const pdch);
 
-       void commit_decoder_channels(
-               shared_ptr<data::decode::Decoder> &dec);
+       void commit_decoder_channels(shared_ptr<data::decode::Decoder> &dec);
 
        void commit_channels();