X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftrace.cpp;h=264541cf18c09f4ca9e5e7b9aebe4431209c22e4;hp=f7e7ebf25b8ec00a351bb415f7fe696de155e8b6;hb=d9ea96280ab1128427143660ae375c30b19aa0cb;hpb=0c2389230c90d8bf34b601c625bcf655b24e8f52 diff --git a/pv/view/trace.cpp b/pv/view/trace.cpp index f7e7ebf2..264541cf 100644 --- a/pv/view/trace.cpp +++ b/pv/view/trace.cpp @@ -80,17 +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::paint_label(QPainter &p, const QRect &rect, bool hover) { const int y = get_visual_y(); @@ -186,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_)