// would be clipped away.
const QRect rect(0, 0, width() - BaselineOffset, height());
- vector< shared_ptr<TraceTreeItem> > items(
- view_.list_by_type<TraceTreeItem>());
+ vector< shared_ptr<RowItem> > items(
+ view_.list_by_type<RowItem>());
stable_sort(items.begin(), items.end(),
- [](const shared_ptr<TraceTreeItem> &a, const shared_ptr<TraceTreeItem> &b) {
- return a->visual_v_offset() < b->visual_v_offset(); });
+ [](const shared_ptr<RowItem> &a, const shared_ptr<RowItem> &b) {
+ return a->point(QRect()).y() < b->point(QRect()).y(); });
QPainter painter(this);
painter.setRenderHint(QPainter::Antialiasing);
- for (const shared_ptr<TraceTreeItem> r : items)
+ for (const shared_ptr<RowItem> r : items)
{
assert(r);