From 130e0a3115cd66e38ec57846e06f69e7fd284400 Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 3 Sep 2013 06:12:33 +0200 Subject: 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...) --- filesystemwidget.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'filesystemwidget.h') 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 -#include +#include +#include #include #include @@ -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; -- cgit v1.2.3-70-g09d2