From 0afebd0e3cb3da831cd5ffba1eefbe9e61e408a1 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 27 Jul 2013 03:59:47 +0200 Subject: Read JSON from ffprobe Use JSON output from ffprobe instead of string parsing to get some kind of type safety. For doing that, some changes were needed in FileView: Use delegates for displaying Duration and Bitrate instead of mangling output in Qt::Displayrole. To reuse code, move all delegates from the new Archive to a separate file. And, of course, the initial objective: Show the accumulated size and duration of selected files in the status bar from the experimental archive. --- archivemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archivemodel.cpp') diff --git a/archivemodel.cpp b/archivemodel.cpp index 255910f..2c3dd7c 100644 --- a/archivemodel.cpp +++ b/archivemodel.cpp @@ -833,7 +833,7 @@ void ArchiveFilesModel::populate(const QSet &seriesPartIds){ while(q.next()){ QList data; data << QVariant(); //expansion (empty) - data << q.value(0) << q.value(1) << q.value(2) << q.value(3) << q.value(4) << q.value(5) << q.value(6) << q.value(7) << q.value(8); // << q.value(9); + data << q.value(0) << q.value(1) << q.value(2) << q.value(3) << q.value(4) << q.value(5) << q.value(6) << q.value(7) << q.value(8); if(!q.value(9).isNull()){ data << q.value(9); }else if(!q.value(10).isNull()){ -- cgit v1.2.3-70-g09d2