X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fviewitem.cpp;h=2141687c92b12fc546bbe87346681a65655dc4d3;hp=61bc99f5f98bba157a1d2eae1ade7078bb892539;hb=641574bcc118be0b6dc3a65039ab3497f9d7241a;hpb=1573bf16ba50d1c023ad3a9ce596f0ab6eaeacff diff --git a/pv/views/trace/viewitem.cpp b/pv/views/trace/viewitem.cpp index 61bc99f5..2141687c 100644 --- a/pv/views/trace/viewitem.cpp +++ b/pv/views/trace/viewitem.cpp @@ -62,7 +62,7 @@ bool ViewItem::dragging() const void ViewItem::drag() { if (is_draggable()) - drag_point_ = point(QRect()); + drag_point_ = drag_point(QRect()); } void ViewItem::drag_release() @@ -130,7 +130,7 @@ void ViewItem::paint_fore(QPainter &p, ViewItemPaintParams &pp) (void)pp; } -QColor ViewItem::select_text_colour(QColor background) +QColor ViewItem::select_text_color(QColor background) { return (background.lightness() > 110) ? Qt::black : Qt::white; }