X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fviewitem.cpp;h=02a9c6a2f39d8deb9dcb0e0c4d3f11e1b1f16a93;hb=1dffa582704bb6acb144a3e89bd6eb0e2ccf4f25;hp=6917190a46dbd8e60554cc241219a2fc62de4743;hpb=be7170664b80552fdfb38da1c214c271cbf116aa;p=pulseview.git diff --git a/pv/view/viewitem.cpp b/pv/view/viewitem.cpp index 6917190a..02a9c6a2 100644 --- a/pv/view/viewitem.cpp +++ b/pv/view/viewitem.cpp @@ -34,8 +34,8 @@ const int ViewItem::HighlightRadius = 3; ViewItem::ViewItem() : context_parent_(NULL), - selected_(false), - drag_point_(INT_MIN, INT_MIN) + drag_point_(INT_MIN, INT_MIN), + selected_(false) { } @@ -54,11 +54,6 @@ bool ViewItem::dragging() const return drag_point_.x() != INT_MIN && drag_point_.y() != INT_MIN; } -QPoint ViewItem::drag_point() const -{ - return drag_point_; -} - void ViewItem::drag() { drag_point_ = point(QRect());