displaying abbreviation of the track format

This commit is contained in:
Martchus 2015-06-07 00:15:47 +02:00
parent 4e4573696f
commit f6b7fd59b8
1 changed files with 5 additions and 1 deletions

View File

@ -162,7 +162,11 @@ void mkTrack(QByteArray &res, const AbstractTrack *track, unsigned int trackNumb
res.append(mkRow(QCoreApplication::translate("HtmlInfo", "Name"), qstr(track->name())));
}
res.append(mkRow(QCoreApplication::translate("HtmlInfo", "Type"), qstr(track->mediaTypeName())));
res.append(mkRow(QCoreApplication::translate("HtmlInfo", "Format"), qstr(track->formatName())));
const char *fmtName = track->formatName(), *fmtAbbr = track->formatAbbreviation();
res.append(mkRow(QCoreApplication::translate("HtmlInfo", "Format"), qstr(fmtName)));
if(strcmp(fmtName, fmtAbbr)) {
res.append(mkRow(QCoreApplication::translate("HtmlInfo", "Abbreviation"), qstr(fmtAbbr)));
}
if(track->version()) {
res.append(mkRow(QCoreApplication::translate("HtmlInfo", "Version"), QString::number(track->version())));
}