summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <jb@kdenlive.org>2016-09-15 19:17:32 (GMT)
committerJean-Baptiste Mardelle <jb@kdenlive.org>2016-09-15 19:17:32 (GMT)
commitda3539c449be1c261f290c31f3f91d99277e90e7 (patch)
tree3cc5f6c2f125a2a93b26eed6674620ae3957e9e1
parent6883a671792763da469dd08531378031b05f13da (diff)
support file size display in clip properties display, patch by Harald Albrecht
REVIEW: 128921
-rw-r--r--src/mltcontroller/clippropertiescontroller.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mltcontroller/clippropertiescontroller.cpp b/src/mltcontroller/clippropertiescontroller.cpp
index bdc30ed..1e0a340 100644
--- a/src/mltcontroller/clippropertiescontroller.cpp
+++ b/src/mltcontroller/clippropertiescontroller.cpp
@@ -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));
}