diff options
| author | Ismael Asensio <[email protected]> | 2020-06-06 18:40:03 +0200 |
|---|---|---|
| committer | Ismael Asensio <[email protected]> | 2020-06-06 18:40:03 +0200 |
| commit | f7a3318fa51dc340e8615009c43ba3a53d9c7012 (patch) | |
| tree | 2116a033fd75c6ad1c7baab03e417536945ce7c8 /src/panels/information/pixmapviewer.h | |
| parent | f987a1c404663f8f8964596548294dc1ae31f377 (diff) | |
Detect animated format using mimeType instead of file path
This allows to extend the functionality to non-local files and avoids a warning
on such files (`QFSFileEngine::open: No file name specified`)
Diffstat (limited to 'src/panels/information/pixmapviewer.h')
| -rw-r--r-- | src/panels/information/pixmapviewer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panels/information/pixmapviewer.h b/src/panels/information/pixmapviewer.h index 37071045f..c231b590d 100644 --- a/src/panels/information/pixmapviewer.h +++ b/src/panels/information/pixmapviewer.h @@ -80,9 +80,9 @@ public: void stopAnimatedImage(); /** - * Checks if \a fileName contains an animated image supported by QMovie. + * Checks if \a mimeType has a format supported by QMovie. */ - static bool isAnimatedImage(const QString &fileName); + static bool isAnimatedMimeType(const QString &mimeType); protected: void paintEvent(QPaintEvent* event) override; |
