From 3adf6f859dd4d5df8e8fceacce74487814867e61 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 7 Dec 2014 22:40:10 +0100 Subject: Major revamp of the file Manager Nothing is async any more. Didn't work, anyway. Instead show a QProgressDialog when gathering data. Was kinda surprising that processEvents has to be called explicitly... Well, done! --- smdirmodel.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'smdirmodel.h') diff --git a/smdirmodel.h b/smdirmodel.h index 19609fd..c4cc4ab 100644 --- a/smdirmodel.h +++ b/smdirmodel.h @@ -27,6 +27,7 @@ class SmDirModel : public SmTreeModel { enum Fields { Name = 0, Size = 1, Type = 2, Created = 3, Md5sum = 4, DurSize = 5, Bitrate = 6, FullPath = 7, Present = 8 }; enum { NumFields = 9 }; enum FileDate { Access, Modified, Status }; + enum Present { InFiles, InOrigin, InPictures, InNone }; explicit SmDirModel(const QStringList &headers, QObject *parent = 0); virtual ~SmDirModel(); virtual QVariant data(const QModelIndex &index, int role) const; @@ -42,9 +43,6 @@ class SmDirModel : public SmTreeModel { void dirEvent(const QList &data, int e); void readSettings(); void refresh(); - void setMd5Sum(QString path, QString md5); - void setFfmpeg(QString path, QVariantMap data); - void setPicSize(QString path, QVariant data); private slots: void populate(SmTreeItem *root); -- cgit v1.2.3-70-g09d2