// unwatched part
p.fillRect(markerPos + markerWidth / 2, seekerTop + 1, seekerWidth - markerPos, seekerHeight - 1, unwatchedPartColor);
+ // previous locations before seeking
int i = 1;
for (auto it = previuousPos.constBegin(); it != previuousPos.constEnd(); ++it)
{
QRect r = p.fontMetrics().boundingRect(time);
int xdelta = markerShadowPos + markerWidth / 2 + 1;
+ int ydelta = seekerHeight / 2 + r.height() / 2 - 1;
if (xdelta + r.width() < width())
- r.translate(xdelta, r.height());
+ r.translate(xdelta, ydelta);
else
- r.translate(markerShadowPos - (markerWidth / 2 + 1) - r.width(), r.height());
+ r.translate(markerShadowPos - (markerWidth / 2 + 1) - r.width(), ydelta);
p.fillRect(r, toolTipBackgroundColor);
p.setPen(QPen(toolTipForegroundColor));