JXR: added CMYK image to read test

Improved read test to skip unsupported image format: the CMYK image test only works if you compile with Qt 6.8 or higher.
This commit is contained in:
Mirco Miranda
2024-06-07 14:09:34 +00:00
committed by Albert Astals Cid
parent 4f61e3912c
commit cb5ca7fc48
6 changed files with 34 additions and 7 deletions

View File

@ -42,9 +42,10 @@ public:
/*!
* \brief compareImage
* \param skipTest True if the test should be skipped (e.g. image format not supported by current Qt version).
* \return The template image to use for the comparison.
*/
QFileInfo compareImage() const;
QFileInfo compareImage(bool &skipTest) const;
/*!
* \brief suffixes
@ -61,9 +62,10 @@ private:
/*!
* \brief jsonImage
* \param skipTest True if the test should be skipped (not supported).
* \return The template image read from the corresponding JSON.
*/
QFileInfo jsonImage() const;
QFileInfo jsonImage(bool &skipTest) const;
private:
QFileInfo m_fi;