diff options
author | Arno <am@disconnect.de> | 2013-09-03 06:12:33 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-09-03 06:12:33 +0200 |
commit | 130e0a3115cd66e38ec57846e06f69e7fd284400 (patch) | |
tree | dd2a1cd7eaa32d1f515ec45bdc009e7cbbb354aa /filesystemwidget.h | |
parent | 3f0a819948d36d06f1ddf07e5a51ff771ddda4da (diff) | |
download | SheMov-130e0a3115cd66e38ec57846e06f69e7fd284400.tar.gz SheMov-130e0a3115cd66e38ec57846e06f69e7fd284400.tar.bz2 SheMov-130e0a3115cd66e38ec57846e06f69e7fd284400.zip |
Switch to QRunnable + QThreadPool
Get rid of SmDataCollector and do its job in small, QRunnable tasks and
let QThreadPool manage the treads.
Works well with a local Filesystem. Yet to see how it works over
networked Filesystems.
Ah, before I forget: NEVER, EVER USE QPixmap in THREADS -> Random
crashes! (Yes, I know, it's documented...)
Diffstat (limited to 'filesystemwidget.h')
-rw-r--r-- | filesystemwidget.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/filesystemwidget.h b/filesystemwidget.h index b9f082d..e3a2597 100644 --- a/filesystemwidget.h +++ b/filesystemwidget.h @@ -8,8 +8,8 @@ #ifndef FILESYSTEMWIDGET_H #define FILESYSTEMWIDGET_H -#include <QtWidgets/QWidget> -#include <QtWidgets/QFileSystemModel> +#include <QWidget> +#include <QFileSystemModel> #include <QSqlDatabase> #include <QDateTime> @@ -18,7 +18,6 @@ class FilesystemDirProxy; class FileView; class FilesystemFileProxy; class QLineEdit; -class QProgressDialog; class PictureViewer2; class FileSystemModel; class SheMovIconProvider; @@ -60,8 +59,6 @@ class FilesystemWidget : public QWidget { void moveToArchive(); void selectAllPV(); void setWindowTitle(); - void setupProgressDlg(int max); - void progress(); private slots: void dirExpanded(const QModelIndex &idx); @@ -70,7 +67,6 @@ class FilesystemWidget : public QWidget { void resizeFileView(); private: - void deleteRecursive(const QFileInfo &start); void copyFiles(const QStringList &files, const QString &dest); void moveFiles(const QStringList &files, const QString &dest); @@ -86,7 +82,6 @@ class FilesystemWidget : public QWidget { FilesystemDirProxy *mDirProxy; FilesystemFileProxy *mFileProxy; QLineEdit *mDirEdit; - QProgressDialog *mProgressDlg; QString mWindowTitle; QString mTemplate; qint64 mSize; |