summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qmovie.h
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@crimson.no>2017-03-15 17:52:01 +0100
committerRobin Burchell <robin.burchell@crimson.no>2017-04-14 09:10:34 +0000
commit6bf99726218df5e6a7fef7feed8dec87b2128594 (patch)
treec40a8e6ed9e53c60ccf1b5f8752f852046efd3db /src/gui/image/qmovie.h
parent01a4d09ef6e1fae0d9b9ab924e7f3fed001ad8c8 (diff)
QMovie: Add lastError and lastErrorString getters
QMovie has an error signal, but it is not possible for users to "catch" all errors, for instance, if they occur at construction time, and furthermore, it may not be convenient to add interception of the signal just to find out what the error was. [ChangeLog][QtGui][QMovie] Added lastError and lastErrorString accessors, as a convenience over connecting to the error() signal. Change-Id: I9c6ef70694c67986ecd30b5dc1b321c4dfa5c315 Reviewed-by: Gunnar Sletta <gunnar@crimson.no>
Diffstat (limited to 'src/gui/image/qmovie.h')
-rw-r--r--src/gui/image/qmovie.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/image/qmovie.h b/src/gui/image/qmovie.h
index 2b41e07dba..ab8ef82aa0 100644
--- a/src/gui/image/qmovie.h
+++ b/src/gui/image/qmovie.h
@@ -106,6 +106,8 @@ public:
QPixmap currentPixmap() const;
bool isValid() const;
+ QImageReader::ImageReaderError lastError() const;
+ QString lastErrorString() const;
bool jumpToFrame(int frameNumber);
int loopCount() const;