- return QRectF(x - label_size.width() / 2 - 0.5f,
- rect.height() - label_size.height() - Offset - ArrowSize - 0.5f,
- label_size.width() + 1, label_size.height() + 1);
+ const float top = rect.height() - label_size.height() -
+ Cursor::Offset - Cursor::ArrowSize - 0.5f;
+ const float height = label_size.height();
+
+ if (_time > other->time())
+ return QRectF(x, top, label_size.width(), height);
+ else
+ return QRectF(x - label_size.width(), top,
+ label_size.width(), height);