diff options
Diffstat (limited to 'smdirmodel.cpp')
-rw-r--r-- | smdirmodel.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/smdirmodel.cpp b/smdirmodel.cpp index 480b6e1..6a7ac39 100644 --- a/smdirmodel.cpp +++ b/smdirmodel.cpp @@ -201,3 +201,14 @@ void SmDirModel::addFile(const QList<QVariant> &data){ return; } +TimerHandler::TimerHandler(QTimer *timer) : mTimer(timer) { + mTimer->stop(); +} + +TimerHandler::~TimerHandler(){ + QSettings s; + bool autoRefresh = s.value("ui/autorefresh", false).toBool(); + if(autoRefresh){ + mTimer->start(); + } +} |