diff options
author | Samuel Fadel <samuel@nihil.ws> | 2023-06-13 14:49:44 +0200 |
---|---|---|
committer | Samuel Fadel <samuel@nihil.ws> | 2023-06-13 14:49:44 +0200 |
commit | 5464d307f27fbc2b5fd52277643d8e719df7cd33 (patch) | |
tree | 952599e5dac40d438f7d763abd849b3b130bdf8f /continuouscolorscale.cpp | |
parent | 4ef37f16257b42512ec610cc5def338707308747 (diff) |
Removed QColor alias.
* colorscale.h: Remove QColor
* continuouscolorscale.cpp: No longer uses QColor
Diffstat (limited to 'continuouscolorscale.cpp')
-rw-r--r-- | continuouscolorscale.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/continuouscolorscale.cpp b/continuouscolorscale.cpp index b7f2c93..4e7aed4 100644 --- a/continuouscolorscale.cpp +++ b/continuouscolorscale.cpp @@ -2,12 +2,12 @@ #include <cmath> -ContinuousColorScale::ContinuousColorScale(std::initializer_list<QColor> colors) +ContinuousColorScale::ContinuousColorScale(std::initializer_list<Color> colors) : ColorScale{colors} { } -QColor ContinuousColorScale::color(float t) const +Color ContinuousColorScale::color(float t) const { if (t <= m_min) { return m_colors.front(); |