From 5464d307f27fbc2b5fd52277643d8e719df7cd33 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Tue, 13 Jun 2023 14:49:44 +0200 Subject: Removed QColor alias. * colorscale.h: Remove QColor * continuouscolorscale.cpp: No longer uses QColor --- colorscale.h | 2 -- continuouscolorscale.cpp | 4 ++-- 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 -ContinuousColorScale::ContinuousColorScale(std::initializer_list colors) +ContinuousColorScale::ContinuousColorScale(std::initializer_list colors) : ColorScale{colors} { } -QColor ContinuousColorScale::color(float t) const +Color ContinuousColorScale::color(float t) const { if (t <= m_min) { return m_colors.front(); -- cgit v1.2.3