namespace view {
const int CursorPair::DeltaPadding = 8;
+const QColor CursorPair::ViewportFillColour(220, 231, 243);
CursorPair::CursorPair(View &view) :
TimeItem(view),
QRectF CursorPair::label_rect(const QRectF &rect) const
{
const QSizeF label_size(
- text_size_.width() + View::LabelPadding.width() * 2,
- text_size_.height() + View::LabelPadding.height() * 2);
+ text_size_.width() + LabelPadding.width() * 2,
+ text_size_.height() + LabelPadding.height() * 2);
const pair<float, float> offsets(get_cursor_offsets());
const pair<float, float> normal_offsets(
(offsets.first < offsets.second) ? offsets :
(float)rect.width() + height);
return QRectF(left, rect.height() - label_size.height() -
- TimeMarker::ArrowSize - TimeMarker::Offset - 0.5f,
+ TimeMarker::ArrowSize - 0.5f,
right - left, height);
}
return;
p.setPen(Qt::NoPen);
- p.setBrush(QBrush(View::CursorAreaColour));
+ p.setBrush(QBrush(ViewportFillColour));
const pair<float, float> offsets(get_cursor_offsets());
const int l = (int)max(min(