File indexing completed on 2024-12-22 04:12:49
0001 /* 0002 * SPDX-FileCopyrightText: 2019 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #ifndef KISSURFACECOLORSPACE_H 0007 #define KISSURFACECOLORSPACE_H 0008 0009 #include <QSurfaceFormat> 0010 0011 /** 0012 * This file is a simple workaround for building our surface format 0013 * selection code on Qt older than 5.10, which doesn't have this feature 0014 * 0015 * TODO: remove this file when we drop support for Qt 5.9 LTS 0016 */ 0017 0018 #if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0) 0019 0020 using KisSurfaceColorSpace = QSurfaceFormat::ColorSpace; 0021 0022 #else 0023 0024 enum KisSurfaceColorSpace { 0025 DefaultColorSpace, 0026 sRGBColorSpace 0027 }; 0028 0029 #endif 0030 0031 #endif // KISSURFACECOLORSPACE_H