// insert chapters
QStringList chaptersString;
for (int i = 0; i < currentChaps.count(); i++) {
- chaptersString.append(Timecode::getStringTimecode(currentChaps.at(i).toInt(), m_tc.fps()));
+ chaptersString.append(Timecode::getStringTimecode(currentChaps.at(i).toInt(), m_tc.fps(), true));
}
m_view.chapters_list->clear();
m_view.chapters_list->addItems(chaptersString);
QStringList chaptersString;
currentChaps.clear();
for (int i = 0; i < chapterTimes.count(); i++) {
- chaptersString.append(Timecode::getStringTimecode(chapterTimes.at(i), m_tc.fps()));
+ chaptersString.append(Timecode::getStringTimecode(chapterTimes.at(i), m_tc.fps(), true));
currentChaps.append(QString::number(chapterTimes.at(i)));
}
// Save item chapters
// rebuild chapters
QStringList chaptersString;
for (int i = 0; i < currentChaps.count(); i++) {
- chaptersString.append(Timecode::getStringTimecode(currentChaps.at(i).toInt(), m_tc.fps()));
+ chaptersString.append(Timecode::getStringTimecode(currentChaps.at(i).toInt(), m_tc.fps(), true));
}
m_view.chapters_list->clear();
m_view.chapters_list->addItems(chaptersString);
void DvdWizardChapters::slotGoToChapter()
{
- if (m_view.chapters_list->currentItem()) m_monitor->setTimePos(m_tc.reformatSeparators(m_view.chapters_list->currentItem()->text() + ":00"));
+ if (m_view.chapters_list->currentItem()) m_monitor->setTimePos(m_tc.reformatSeparators(m_view.chapters_list->currentItem()->text()));
}
void DvdWizardChapters::setVobFiles(DVDFORMAT format, const QStringList &movies, const QStringList &durations, const QStringList &chapters)
result.append(m_view.vob_list->itemText(i));
QStringList chapters = m_view.vob_list->itemData(i, Qt::UserRole + 1).toStringList();
for (int j = 0; j < chapters.count(); j++) {
- result.append(Timecode::getStringTimecode(chapters.at(j).toInt(), m_tc.fps()));
+ result.append(Timecode::getStringTimecode(chapters.at(j).toInt(), m_tc.fps(), true));
}
}
return result;
QStringList result;
QStringList chapters = m_view.vob_list->itemData(ix, Qt::UserRole + 1).toStringList();
for (int j = 0; j < chapters.count(); j++) {
- result.append(Timecode::getStringTimecode(chapters.at(j).toInt(), m_tc.fps()));
+ result.append(Timecode::getStringTimecode(chapters.at(j).toInt(), m_tc.fps(), true));
}
return result;
}