X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Flogicsignal.hpp;h=cc62d910845b012b2e1752d5973b8e7b52674be0;hp=417530cb5e08319db34be176ee614545a8b2daad;hb=60938e0430a0d08792ba53b86ca94153baaed74d;hpb=6f925ba9d6faf1077b73c5a5808259576081716a diff --git a/pv/view/logicsignal.hpp b/pv/view/logicsignal.hpp index 417530cb..cc62d910 100644 --- a/pv/view/logicsignal.hpp +++ b/pv/view/logicsignal.hpp @@ -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 device, shared_ptr 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 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);