]> sigrok.org Git - pulseview.git/blobdiff - pv/view/signal.h
Moved Signal selection behaviour into SelectableItem
[pulseview.git] / pv / view / signal.h
index 3a7a103df0ecbae171f6ad47ea67791ba8c48525..4f16e3a72b8bbb4f15cfdebd257b6ab0c6e3dd1d 100644 (file)
@@ -45,6 +45,8 @@ namespace view {
 
 class Signal : public SelectableItem
 {
+       Q_OBJECT
+
 private:
        static const int LabelHitPadding;
        static const int LabelHighlightRadius;
@@ -85,16 +87,6 @@ public:
         */
        void set_v_offset(int v_offset);
 
-       /**
-        * Returns true if the signal has been selected by the user.
-        */
-       bool selected() const;
-
-       /**
-        * Selects or deselects the signal.
-        */
-       void select(bool select = true);
-
        /**
         * Paints the signal with a QPainter
         * @param p the QPainter to paint into.
@@ -166,8 +158,6 @@ protected:
        QColor _colour;
        int _v_offset;
 
-       bool _selected;
-
        QSizeF _text_size;
 };