]> sigrok.org Git - pulseview.git/commitdiff
Trace: Removed hit_box_rect, to remove canvas dragging support
authorJoel Holdsworth <redacted>
Sat, 2 Jan 2016 15:56:59 +0000 (15:56 +0000)
committerUwe Hermann <redacted>
Sun, 3 Jan 2016 19:09:30 +0000 (20:09 +0100)
pv/view/trace.cpp
pv/view/trace.hpp

index f7bba9ff31506e5a5fa68abaacfe1fe3163e321e..264541cf18c09f4ca9e5e7b9aebe4431209c22e4 100644 (file)
@@ -175,13 +175,6 @@ QRectF Trace::label_rect(const QRectF &rect) const
                label_size.height());
 }
 
-QRectF Trace::hit_box_rect(const ViewItemPaintParams &pp) const
-{
-       const float h = QFontMetrics(QApplication::font()).height();
-       return QRectF(pp.left(), get_visual_y() - h / 2.0f,
-               pp.width(), h);
-}
-
 void Trace::paint_back(QPainter &p, const ViewItemPaintParams &pp)
 {
        if (coloured_bg_)
index c9582c61218409616c7119d1cc894f6ae0cecafd..cb5ac15c6ec2173f14cc3d7dbde1ac298a7a333e 100644 (file)
@@ -81,13 +81,6 @@ public:
         */
        void set_coloured_bg(bool state);
 
-       /**
-        * Computes the outline rectangle of the viewport hit-box.
-        * @param rect the rectangle of the viewport area.
-        * @return Returns the rectangle of the hit-box.
-        */
-       QRectF hit_box_rect(const ViewItemPaintParams &pp) const;
-
        /**
         * Paints the signal label.
         * @param p the QPainter to paint into.