- p.setPen(HighlightColour);
- p.setBrush(QBrush());
- p.drawEllipse(r.adjusted(1, 1, -1, -1));
+ if (time_ > other->time())
+ return QRectF(x, top, label_size.width(), height);
+ else
+ return QRectF(x - label_size.width(), top,
+ label_size.width(), height);
+}
+
+shared_ptr<Cursor> Cursor::get_other_cursor() const
+{
+ const shared_ptr<CursorPair> cursors(view_.cursors());
+ assert(cursors);
+ return (cursors->first().get() == this) ?
+ cursors->second() : cursors->first();