diff options
author | Arno <am@disconnect.de> | 2014-12-10 22:10:50 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2014-12-10 22:10:50 +0100 |
commit | 2c022561f692a813b44da39d6ffdcb373aa4c7ba (patch) | |
tree | a500c3623572e1230b12b2302b00bf558502dadd /smdirwatcher.h | |
parent | 343d3db5f5ad571527a7ca70457cbb6ccb1bbb71 (diff) | |
download | SheMov-2c022561f692a813b44da39d6ffdcb373aa4c7ba.tar.gz SheMov-2c022561f692a813b44da39d6ffdcb373aa4c7ba.tar.bz2 SheMov-2c022561f692a813b44da39d6ffdcb373aa4c7ba.zip |
Various Bugfixes and cleanups
* remove debug statements from SmDirWatcher
* Don't crash on parentDir when current Dir is already deleted
* Fix PicFilesModel MappingQuery. It needlessly referenced the table
pics in FROM causing an expensive full table scan!
* Fix findRecursive in PicFilesModel: Stupid typo!
* Give SmDirWatcher a separate DB-Connection. One Thread, one Connection
* Remove several includes
This should have been 6 commits, but that's how debugging works :(
Diffstat (limited to 'smdirwatcher.h')
-rw-r--r-- | smdirwatcher.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/smdirwatcher.h b/smdirwatcher.h index 579a4c3..bf89050 100644 --- a/smdirwatcher.h +++ b/smdirwatcher.h @@ -9,21 +9,11 @@ #define SMDIRWATCHER_H #include <QThread> -#include <QList> #include <QVariant> -#include <QFileInfo> -#include <QQueue> -#include <QMutex> #include <QSqlDatabase> #include <QSqlQuery> -#include <QThreadPool> -#include <QRunnable> class SmTreeItem; -class QSemaphore; -class SmDataColletor; -class AsyncTask; -class Md5Summer; class SmDirWatcher : public QThread { Q_OBJECT @@ -56,6 +46,7 @@ class SmDirWatcher : public QThread { int mBufLen; int mNumFields; bool mExpensiveOps; + QSqlDatabase mDb; }; #endif // SMDIRWATCHER_H |