From 91cf2978ba97bc8ebda2da9df01d3dde22b99f14 Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 12 Aug 2010 19:40:33 +0200 Subject: Show picture size or duration in FilesTreeView Finally managed to view size of pictures or duration for movies in the file view. That values are not held in the database, they're created on the fly. For this to perform I created a disk based cache. I also had to create some convenience functions: FilesTreeModel::streamInfo(const QString &) FilesTreeModel::pictureInfo(const QString &) The cache is a QDataStream and will be deleted if the magic doesn't fit. --- smglobals.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'smglobals.cpp') diff --git a/smglobals.cpp b/smglobals.cpp index 61530d1..8c572f1 100644 --- a/smglobals.cpp +++ b/smglobals.cpp @@ -53,7 +53,7 @@ QAbstractItemModel *SmGlobals::model(const QString &which){ } }else if(which == "FilesModel"){ if(!mModels.contains(which)){ - QStringList headers = QStringList() << tr("Name") << tr("Part") << tr("Size") << tr("Qual.") << tr("Dvd") << tr("Full Path") << tr("Size") << tr("Type") << tr("Md5 sum") << tr("Series part ID") << tr("File ID"); + QStringList headers = QStringList() << tr("Name") << tr("Part") << tr("Size") << tr("Qual.") << tr("Dvd") << tr("Full Path") << tr("Size") << tr("Type") << tr("Md5 sum") << tr("Series part ID") << tr("File ID") << tr("Seriespart") << tr("Display name") << tr("Dur./Size"); FilesTreeModel *model = new FilesTreeModel(headers); mModels.insert(which, model); } -- cgit v1.2.3-70-g09d2