]> sigrok.org Git - pulseview.git/blobdiff - pv/view/logicsignal.hpp
ViewPort: Make ViewItemPaintParams mutable
[pulseview.git] / pv / view / logicsignal.hpp
index 417530cb5e08319db34be176ee614545a8b2daad..cc62d910845b012b2e1752d5973b8e7b52674be0 100644 (file)
@@ -54,7 +54,7 @@ class LogicSignal : public Signal
 {
        Q_OBJECT
 
-private:
+public:
        static const float Oversampling;
 
        static const QColor EdgeColour;
@@ -68,7 +68,6 @@ private:
        static const int TriggerMarkerPadding;
        static const char* TriggerMarkerIcons[8];
 
-public:
        LogicSignal(pv::Session &session,
                shared_ptr<devices::Device> device,
                shared_ptr<data::SignalBase> base);
@@ -101,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,
@@ -119,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);