From 369c14264c664b38049ac081cf60b8485a4042cb Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 22 Aug 2013 07:43:20 +0200 Subject: Give Pictures some love! * Show and archive size of pictures * Fix SqlQueries in PicFilesModel: removeFiles and changeMappings * use delegate in PictureView --- smdirwatcher.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'smdirwatcher.cpp') diff --git a/smdirwatcher.cpp b/smdirwatcher.cpp index 64ab330..87d2eff 100644 --- a/smdirwatcher.cpp +++ b/smdirwatcher.cpp @@ -169,8 +169,7 @@ const QList SmDataColletor::fileData(const QFileInfo &fi){ si[0] = ffData.value("duration").toDouble(); si[1] = ffData.value("bit_rate").toInt(); }else if(mime.startsWith("image")){ - QImage img(fi.absoluteFilePath()); - si[0] = img.size(); + si[0] = Helper::picSize(fi.absoluteFilePath()); } data << Helper::md5Sum(fi.absoluteFilePath()); data << si << fi.absoluteFilePath(); -- cgit v1.2.3-70-g09d2