aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--colorscale.h2
-rw-r--r--continuouscolorscale.cpp4
2 files changed, 2 insertions, 4 deletions
diff --git a/colorscale.h b/colorscale.h
index e2854bd..7bd47a9 100644
--- a/colorscale.h
+++ b/colorscale.h
@@ -25,8 +25,6 @@ public:
float r, g, b, a;
};
-using QColor = Color;
-
class ColorScale
{
public:
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();