summaryrefslogtreecommitdiffstats
path: root/filestreewidget.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-12-16 19:46:34 +0100
committerArno <am@disconnect.de>2010-12-16 19:46:34 +0100
commit69bdaf5d1cdf2cb6a5da8371658e1c3995a71cfb (patch)
treee307f53d30b4ad59f6ab592c97adcf58008a8c6c /filestreewidget.cpp
parentc7bffca4cfc626c62c0eae6bc6b06d92cb2a8340 (diff)
downloadSheMov-69bdaf5d1cdf2cb6a5da8371658e1c3995a71cfb.tar.gz
SheMov-69bdaf5d1cdf2cb6a5da8371658e1c3995a71cfb.tar.bz2
SheMov-69bdaf5d1cdf2cb6a5da8371658e1c3995a71cfb.zip
Cache for frame grabbing
Implemetented a cache for hovering over movies, saving the pictures from ffmpeg. For that SmGlobals got a new member *frameCache, handling all the dirty file access. I first tried to implement it as a helper, but that produced too much duplicate code.
Diffstat (limited to 'filestreewidget.cpp')
-rw-r--r--filestreewidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/filestreewidget.cpp b/filestreewidget.cpp
index b6189c5..857b848 100644
--- a/filestreewidget.cpp
+++ b/filestreewidget.cpp
@@ -408,7 +408,7 @@ void FilesTreeView::doHover(const QModelIndex &idx){
bool scale = true;
mCurHover = idx;
if(idx.data(FilesTreeModel::FileTypeRole).toInt() == FilesTreeModel::Movie){
- pm = Helper::grabFrame(idx.data(FilesTreeModel::FullPathRole).toString());
+ pm = SmGlobals::instance()->frameCache()->entry(idx.data(FilesTreeModel::FullPathRole).toString());
if(pm.isNull()){
return;
}