aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Fadel <samuel@nihil.ws>2023-06-13 14:49:44 +0200
committerSamuel Fadel <samuel@nihil.ws>2023-06-13 14:49:44 +0200
commit5464d307f27fbc2b5fd52277643d8e719df7cd33 (patch)
tree952599e5dac40d438f7d763abd849b3b130bdf8f
parent4ef37f16257b42512ec610cc5def338707308747 (diff)
Removed QColor alias.
* colorscale.h: Remove QColor * continuouscolorscale.cpp: No longer uses QColor
-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();