]> sigrok.org Git - pulseview.git/blobdiff - pv/view/trace.cpp
Standardize on 'event' as name for all Qt events.
[pulseview.git] / pv / view / trace.cpp
index ee0a4f0e921630b986a090bbdca494fb3849010f..264541cf18c09f4ca9e5e7b9aebe4431209c22e4 100644 (file)
@@ -80,27 +80,6 @@ void Trace::set_coloured_bg(bool state)
        coloured_bg_ = state;
 }
 
-bool Trace::is_draggable() const
-{
-       const View *const view = owner_->view();
-       assert(view);
-
-       QPoint cursor_pos = view->mapFromGlobal(QCursor::pos());
-
-       // The signal is draggable only in the header area
-       return (cursor_pos.x() <= view->header_size().width());
-}
-
-void Trace::select(bool select)
-{
-       // Trace can only be selected if the mouse cursor is in the header area;
-       // as is_draggable() checks the same thing, we re-use it here
-       if (is_draggable() && select)
-               selected_ = true;
-       else
-               selected_ = false;
-}
-
 void Trace::paint_label(QPainter &p, const QRect &rect, bool hover)
 {
        const int y = get_visual_y();
@@ -196,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_)