X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fsignal.h;h=d62709729cbcfe760f376de6d83b663698c43a88;hb=e9213170687cf4afd14e20acdc690ff9381d94ae;hp=32d181772fce2ce2c48e571d50573608e7d6018f;hpb=4871ed92f2d9e6e514223383ba16e6ad78c81161;p=pulseview.git diff --git a/pv/view/signal.h b/pv/view/signal.h index 32d1817..d627097 100644 --- a/pv/view/signal.h +++ b/pv/view/signal.h @@ -21,7 +21,7 @@ #ifndef PULSEVIEW_PV_VIEW_SIGNAL_H #define PULSEVIEW_PV_VIEW_SIGNAL_H -#include +#include #include #include @@ -49,7 +49,7 @@ class Signal : public Trace Q_OBJECT protected: - Signal(boost::shared_ptr dev_inst, + Signal(std::shared_ptr dev_inst, const sr_channel *const probe); public: @@ -58,7 +58,7 @@ public: */ void set_name(QString name); - virtual boost::shared_ptr data() const = 0; + virtual std::shared_ptr data() const = 0; /** * Returns true if the trace is visible and enabled. @@ -75,11 +75,13 @@ public: void delete_pressed(); -private slots: + bool eventFilter(QObject *obj, QEvent *evt); + +private Q_SLOTS: void on_disable(); protected: - boost::shared_ptr _dev_inst; + std::shared_ptr _dev_inst; const sr_channel *const _probe; QComboBox *_name_widget;