Dive pictures: differentiate between IO-error and unknown format

Show different images for IO-error and unknow file format.

Use file-extensions to recognize video files if we couldn't
parse them.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-07-08 21:24:44 +02:00 committed by Dirk Hohndel
parent f8f8735cfe
commit a741f505ca
2 changed files with 40 additions and 19 deletions

View file

@ -67,6 +67,7 @@ private:
QImage failImage; // Shown when image-fetching fails
QImage dummyImage; // Shown before thumbnail is fetched
QImage videoImage; // Place holder for videos
QImage unknownImage; // Place holder for files where we couldn't determine the type
QMap<QString,QFuture<void>> workingOn;
};