Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Qt6: Use float instead of qreal
Halla Rempt82b69dac954a
diff --git a/libs/widgets/KisHsvColorSlider.cpp b/libs/widgets/KisHsvColorSlider.cppindex c1e31a52c9..b1fe683183 100644--- a/libs/widgets/KisHsvColorSlider.cpp+++ b/libs/widgets/KisHsvColorSlider.cpp@@ -37,8 +37,15 @@ struct HSVColor {: h(hh), s(ss), v(vv){}-- qreal h, s, v;+#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))+ qreal h;+ qreal s;+ qreal v;+#else+ float h;+ float s;+ float v;+#endif};void fromQColor(const QColor minC, const QColor maxC, HSVColor &min, HSVColor &max) {