- _text_size = p.boundingRect(QRectF(), 0,
- Ruler::format_time(_time, prefix, 2)).size();
+ text_size_ = p.boundingRect(QRectF(), 0,
+ pv::util::format_time(time_, prefix, 2)).size();
+}
+
+shared_ptr<Cursor> Cursor::get_other_cursor() const
+{
+ const CursorPair &cursors = view_.cursors();
+ return (cursors.first().get() == this) ?
+ cursors.second() : cursors.first();