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. --- shemov.pro | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'shemov.pro') diff --git a/shemov.pro b/shemov.pro index b6f83d0..95d0278 100644 --- a/shemov.pro +++ b/shemov.pro @@ -46,7 +46,8 @@ SOURCES = main.cpp \ smtreeview.cpp \ archivemodel.cpp \ archiveview.cpp \ - archivecontroller.cpp + archivecontroller.cpp \ + delegates.cpp HEADERS = \ filesystemdirproxy.h \ filesystemwidget.h \ @@ -88,6 +89,7 @@ HEADERS = \ smtreeview.h \ archivemodel.h \ archiveview.h \ - archivecontroller.h + archivecontroller.h \ + delegates.h LIBS += -lmagic -lXfixes -lX11 RESOURCES = shemov.qrc -- cgit v1.2.3-70-g09d2