void Trace::paint_label(QPainter &p, int right, bool hover)
{
- assert(_view);
- const int y = _v_offset - _view->v_offset();
+ const int y = get_y();
p.setBrush(_colour);
int Trace::get_y() const
{
+ assert(_view);
return _v_offset - _view->v_offset();
}
{
using pv::view::View;
- assert(_view);
-
QFontMetrics m(QApplication::font());
const QSize text_size(
m.boundingRect(QRect(), 0, _name).width(),