]> sigrok.org Git - pulseview.git/blobdiff - pv/view/logicsignal.hpp
ViewPort: Make ViewItemPaintParams mutable
[pulseview.git] / pv / view / logicsignal.hpp
index 274fd6cd23437d95d8d0f0ce6ee470e4ea80a6bd..cc62d910845b012b2e1752d5973b8e7b52674be0 100644 (file)
@@ -100,14 +100,14 @@ public:
         * @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 signal with a QPainter
         * @param p the QPainter to paint into.
         * @param pp the painting parameters object to paint with.
         */
-       virtual void paint_fore(QPainter &p, const ViewItemPaintParams &pp);
+       virtual void paint_fore(QPainter &p, ViewItemPaintParams &pp);
 
 private:
        void paint_caps(QPainter &p, QLineF *const lines,
@@ -118,8 +118,7 @@ private:
        void init_trigger_actions(QWidget *parent);
 
        const vector<int32_t> get_trigger_types() const;
-       QAction* action_from_trigger_type(
-               const sigrok::TriggerMatchType *type);
+       QAction* action_from_trigger_type(const sigrok::TriggerMatchType *type);
        const sigrok::TriggerMatchType* trigger_type_from_action(
                QAction *action);
        void populate_popup_form(QWidget *parent, QFormLayout *form);