http://kdenlive.org/mantis/view.php?id=1661
svn path=/trunk/kdenlive/; revision=5192
QDomText call;
if (i == voburls.count() - 1) call = dvddoc.createTextNode("{g1 = 0; call menu;}");
else {
QDomText call;
if (i == voburls.count() - 1) call = dvddoc.createTextNode("{g1 = 0; call menu;}");
else {
- call = dvddoc.createTextNode("{if ( g1 eq 999 ) { call menu; } jump title " + QString::number(i + 2) + ";}");
+ call = dvddoc.createTextNode("{if ( g1 eq 999 ) { call menu; } jump title " + QString::number(i + 2).rightJustified(2, '0') + ";}");
}
post.appendChild(call);
pgc2.appendChild(post);
}
post.appendChild(call);
pgc2.appendChild(post);
QStringList result;
int max = m_view.vob_list->count();
for (int i = 0; i < max; i++) {
QStringList result;
int max = m_view.vob_list->count();
for (int i = 0; i < max; i++) {
- result.append("jump title " + QString::number(i + 1));
+ // rightJustified: fill with 0s to make menus with more than 9 buttons work (now up to 99 buttons possible)
+ result.append("jump title " + QString::number(i + 1).rightJustified(2, '0'));
QStringList chapters = m_view.vob_list->itemData(i, Qt::UserRole + 1).toStringList();
for (int j = 0; j < chapters.count(); j++) {
QStringList chapters = m_view.vob_list->itemData(i, Qt::UserRole + 1).toStringList();
for (int j = 0; j < chapters.count(); j++) {
- result.append("jump title " + QString::number(i + 1) + " chapter " + QString::number(j + 1));
+ result.append("jump title " + QString::number(i + 1).rightJustified(2, '0') + " chapter " + QString::number(j + 1).rightJustified(2, '0'));
if (isPal == false) {
m_width = 720;
m_height = 480;
if (isPal == false) {
m_width = 720;
m_height = 480;
- m_isPal = false;
- updatePreview();
} else {
m_width = 720;
m_height = 576;
} else {
m_width = 720;
m_height = 576;
- m_isPal = true;
- updatePreview();
}
void DvdWizardMenu::updatePreview()
}
void DvdWizardMenu::updatePreview()