X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftrace.cpp;h=9caa8f012adf57310f4ca65fe29c3254380b7c38;hp=3409ecf75cb7a471dba4ebe73b6adf5532cf4762;hb=32218d3e708553b4508c3510d388aded58068381;hpb=0067d80499d36944277e6fed2d7ad5394c85c03f diff --git a/pv/view/trace.cpp b/pv/view/trace.cpp index 3409ecf7..9caa8f01 100644 --- a/pv/view/trace.cpp +++ b/pv/view/trace.cpp @@ -70,7 +70,7 @@ void Trace::set_colour(QColor colour) void Trace::paint_label(QPainter &p, int right, bool hover) { - const int y = get_y(); + const int y = get_visual_y(); p.setBrush(_colour); @@ -157,7 +157,7 @@ QRectF Trace::label_rect(int right) const const float half_height = label_size.height() / 2; return QRectF( right - half_height - label_size.width() - 0.5, - get_y() + 0.5f - half_height, + get_visual_y() + 0.5f - half_height, label_size.width() + half_height, label_size.height()); } @@ -223,13 +223,17 @@ void Trace::on_popup_closed() void Trace::on_text_changed(const QString &text) { set_name(text); - text_changed(); + + if (_owner) + _owner->extents_changed(true, false); } void Trace::on_colour_changed(const QColor &colour) { set_colour(colour); - colour_changed(); + + if (_owner) + _owner->appearance_changed(true, false); } } // namespace view