X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fviewitem.cpp;h=2a3a6926190fb00c0c5aac1b35b0f564c554727e;hp=3627d8ca6f1bcefb160b84d609f0b0fae6c9564d;hb=af33d4cbacc745f4473f5c0f4fa1f9ebb8d84d0a;hpb=cbd9ec7f751a5403d1465e966ccecd31b7086e8a diff --git a/pv/views/trace/viewitem.cpp b/pv/views/trace/viewitem.cpp index 3627d8ca..2a3a6926 100644 --- a/pv/views/trace/viewitem.cpp +++ b/pv/views/trace/viewitem.cpp @@ -55,8 +55,9 @@ void ViewItem::select(bool select) selected_ = select; } -bool ViewItem::is_draggable() const +bool ViewItem::is_draggable(QPoint pos) const { + (void)pos; return true; } @@ -67,8 +68,7 @@ bool ViewItem::dragging() const void ViewItem::drag() { - if (is_draggable()) - drag_point_ = drag_point(QRect()); + drag_point_ = drag_point(QRect()); } void ViewItem::drag_release() @@ -148,6 +148,11 @@ QColor ViewItem::select_text_color(QColor background) return (background.lightness() > 110) ? Qt::black : Qt::white; } +void ViewItem::hover_point_changed(const QPoint &hp) +{ + (void)hp; +} + } // namespace trace } // namespace views } // namespace pv