Skip to content
Permalink
Browse files
Fix build on old qt
  • Loading branch information
nyalldawson committed Nov 10, 2021
1 parent 5400bca commit 74a4d1082a4329f6af707134e163ef52ee5d7c25
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/qgscolorrampimpl.cpp
@@ -174,7 +174,9 @@ void QgsGradientStop::setColorSpec( QColor::Spec spec )
{
case QColor::Rgb:
case QColor::Invalid:
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
case QColor::ExtendedRgb:
#endif
case QColor::Cmyk:
mFunc = _interpolateRgb;
break;
@@ -426,7 +428,9 @@ QVariantMap QgsGradientColorRamp::properties() const
break;
case QColor::Cmyk:
case QColor::Invalid:
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
case QColor::ExtendedRgb:
#endif
break;
}

@@ -530,7 +534,9 @@ void QgsGradientColorRamp::setColorSpec( QColor::Spec spec )
{
case QColor::Rgb:
case QColor::Invalid:
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
case QColor::ExtendedRgb:
#endif
case QColor::Cmyk:
mFunc = _interpolateRgb;
break;

0 comments on commit 74a4d10

Please sign in to comment.