]> sigrok.org Git - pulseview.git/blobdiff - pv/view/signal.h
Moved highlight pen into SelectableItem
[pulseview.git] / pv / view / signal.h
index 3a7a103df0ecbae171f6ad47ea67791ba8c48525..ece2e5a446218591f066a435454004a550b267f3 100644 (file)
@@ -45,9 +45,10 @@ namespace view {
 
 class Signal : public SelectableItem
 {
+       Q_OBJECT
+
 private:
        static const int LabelHitPadding;
-       static const int LabelHighlightRadius;
 
        static const QPen SignalAxisPen;
 
@@ -85,16 +86,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 +157,6 @@ protected:
        QColor _colour;
        int _v_offset;
 
-       bool _selected;
-
        QSizeF _text_size;
 };