mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-07-24 08:40:58 -04:00
Remove Qt version checks now that 6.8.0 is the minimum required
This commit is contained in:
@@ -177,12 +177,10 @@ public:
|
||||
QImage::Format format() const
|
||||
{
|
||||
auto format = QImage::Format_Invalid;
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
|
||||
if (m_pb.colorCount() == 4) {
|
||||
if (m_pb.bitMask() == 15)
|
||||
format = QImage::Format_CMYK8888;
|
||||
}
|
||||
#endif
|
||||
if (m_pb.colorCount() == 3) {
|
||||
if (m_pb.bitMask() == 7)
|
||||
format = QImage::Format_RGB888;
|
||||
|
||||
Reference in New Issue
Block a user