diff options
author | Arno <am@disconnect.de> | 2013-09-03 08:16:46 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-09-03 08:16:46 +0200 |
commit | 666db6b8c2d7704415946c0a8d69adb3cf5ae7f5 (patch) | |
tree | 16c3072a56baea84227b0874c048e223d485a601 /smdirmodel.h | |
parent | 130e0a3115cd66e38ec57846e06f69e7fd284400 (diff) | |
download | SheMov-666db6b8c2d7704415946c0a8d69adb3cf5ae7f5.tar.gz SheMov-666db6b8c2d7704415946c0a8d69adb3cf5ae7f5.tar.bz2 SheMov-666db6b8c2d7704415946c0a8d69adb3cf5ae7f5.zip |
Introduce Expensive Operations
Add a configuration Option to (de-)select expensive file operations.
That would be md5Summing and gathering the Bitrate/Duration.
That should help the performance on networked directories...
Diffstat (limited to 'smdirmodel.h')
-rw-r--r-- | smdirmodel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/smdirmodel.h b/smdirmodel.h index 26f34cf..19609fd 100644 --- a/smdirmodel.h +++ b/smdirmodel.h @@ -35,6 +35,7 @@ class SmDirModel : public SmTreeModel { QDir dir() const; QFileInfo fileInfo(const QModelIndex &idx) const; QTimer *refreshTimer() { return mRefreshTimer; } + SmDirWatcher *watcher() { return mWatch; } public slots: void setDir(const QString &dir); @@ -62,6 +63,7 @@ class SmDirModel : public SmTreeModel { QTimer *mRefreshTimer; QMap<QString, QIcon> mIcons; QSqlDatabase mDb; + bool mExpensiveOps; }; class TimerHandler { |