QDateTime::secsTo() returns qint64 in Qt5, int in Qt4. Add cast.