p.fillRect(markerPos + markerWidth / 2, seekerTop + 1, seekerWidth - markerPos, seekerHeight - 1, unwatchedPartColor);
int i = 1;
- for (QQueue<qint64>::const_iterator it = previuousPos.constBegin(); it != previuousPos.constEnd(); ++it)
+ for (auto it = previuousPos.constBegin(); it != previuousPos.constEnd(); ++it)
{
int markerPos = seekerLeft + 1 + markerWidth / 2 + qRound(double(*it) / double(m_length) * double(seekerWidth - markerWidth / 2 - 1));
QColor c = previousMarkerColor;
markerShadowPos = qBound(seekerLeft + 1 + markerWidth / 2, markerShadowPos, seekerLeft + seekerWidth - markerWidth / 2);
p.fillRect(markerShadowPos - markerWidth / 2, seekerTop + 1, markerWidth, seekerHeight - 1, markerShadowColor);
- QString time = QTime().addMSecs(pos2time(markerShadowPos)).toString("hh:mm:ss");
+ QString time = QTime(0, 0).addMSecs(pos2time(markerShadowPos)).toString("hh:mm:ss");
QRect r = p.fontMetrics().boundingRect(time);
int xdelta = markerShadowPos + markerWidth / 2 + 1;