From 666db6b8c2d7704415946c0a8d69adb3cf5ae7f5 Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 3 Sep 2013 08:16:46 +0200 Subject: 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... --- smdirmodel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'smdirmodel.h') 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 mIcons; QSqlDatabase mDb; + bool mExpensiveOps; }; class TimerHandler { -- cgit v1.2.3-70-g09d2