+ const View *view = owner_->view();
+ assert(view);
+
+ if (view->coloured_bg())
+ p.setBrush(base_->bgcolour());
+ else
+ p.setBrush(bgcolour_state_ ? BrightGrayBGColour : DarkGrayBGColour);
+
+ p.setPen(QPen(Qt::NoPen));
+
+ const pair<int, int> extents = v_extents();
+ p.drawRect(pp.left(), get_visual_y() + extents.first,
+ pp.width(), extents.second - extents.first);
+}
+
+void Trace::paint_axis(QPainter &p, const ViewItemPaintParams &pp, int y)
+{
+ p.setRenderHint(QPainter::Antialiasing, false);
+