Go to the documentation of this file.
3 #if QT_VERSION < QT_VERSION_CHECK(5,14,0)
6 #define QT_ENDL Qt::endl
23 for (
const auto & text : qAsConst(sub.
m_text))
34 QTime time = QTime::fromMSecsSinceStartOfDay(time_in_msec.count());
35 return time.toString(
"HH:mm:ss,zzz");
static QString FormatTime(std::chrono::milliseconds time_in_msec)
Formats time to format appropriate to SubRip file.
Represents one subtitle record.
void AddSubtitle(const OneSubtitle &sub, int number)
Adds next subtitle.
std::chrono::milliseconds m_length
Time we have to show subtitle, msec.
QTextStream m_outStream
Output stream associated with m_outFile.
QStringList m_text
Lines of text of subtitles.
std::chrono::milliseconds m_startTime
Time we have to start showing subtitle, msec.