From 1e247c6fea51dab6815e3a15f22cd08e56039e89 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 23 Jun 2013 05:47:10 +0200 Subject: Make the archive cache useful Read the cache if there is one, if not, read it in another thread and update the view when it's done. --- archiveview.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'archiveview.h') diff --git a/archiveview.h b/archiveview.h index 9e3e666..eac7f46 100644 --- a/archiveview.h +++ b/archiveview.h @@ -32,12 +32,8 @@ class ArchiveView : public QWidget { explicit ArchiveView(QWidget *parent = 0); int currentSortOrder() const; void writeSettings(); - // this is needed for displaying the progress dialog in the - // center of the main window... - void setConstructingDone() { mConstructing = false; } ArchiveModel *archiveModel() { return mArchiveModel; } ArchiveTree *archiveTree() { return mTree; } - QWidget *progressDialog(); public slots: void refreshArchive(); @@ -46,8 +42,6 @@ class ArchiveView : public QWidget { private slots: void setFilter(); void clearFilter(); - void collectorStarted(); - void collectorFinished(); void showDatabaseError(const QString &errorMsg); void expandItem(const QModelIndex &idx); void collapseItem(const QModelIndex &idx); @@ -80,18 +74,6 @@ class ArchiveTree : public SmTreeView { ArchiveModel *mModel; }; -class ArchiveProgressDialog : public QDialog { - Q_OBJECT - public: - explicit ArchiveProgressDialog(QWidget *parent = 0, Qt::WindowFlags f = Qt::WindowStaysOnTopHint); - - public slots: - void setMessage(const QString &msg); - - private: - QLabel *mMessage; -}; - class ArchiveFiles : public SmTreeView { public: explicit ArchiveFiles(QWidget *parent = 0); -- cgit v1.2.3-70-g09d2