Go to the documentation of this file.
17 for (
const auto & text : std::as_const(sub.
m_text))
28 QTime time = QTime::fromMSecsSinceStartOfDay(time_in_msec.count());
29 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.