Commit da3539c4 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

support file size display in clip properties display, patch by Harald Albrecht

REVIEW: 128921
parent 6883a671
......@@ -847,6 +847,14 @@ void ClipPropertiesController::fillProperties()
}
}
qint64 filesize = m_controller->int64_property("kdenlive:file_size");
if (filesize > 0) {
QLocale locale(QLocale::system()); // use the user's locale for getting proper separators!
propertyMap.append(QStringList()
<< i18n("File size")
<< KIO::convertSize(filesize) + QStringLiteral(" (") + locale.toString(filesize) + QStringLiteral(")"));
}
for (int i = 0; i < propertyMap.count(); i++) {
new QTreeWidgetItem(m_propertiesTree, propertyMap.at(i));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment