diff options
Diffstat (limited to 'divergentcolorscale.cpp')
-rw-r--r-- | divergentcolorscale.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/divergentcolorscale.cpp b/divergentcolorscale.cpp index 1d92b53..1bc3f7b 100644 --- a/divergentcolorscale.cpp +++ b/divergentcolorscale.cpp @@ -2,9 +2,9 @@ #include <cmath> -DivergentColorScale::DivergentColorScale(const QColor &color1, - const QColor &colorMiddle, - const QColor &color2) +DivergentColorScale::DivergentColorScale(const Color &color1, + const Color &colorMiddle, + const Color &color2) : ColorScale{{color1, colorMiddle, color2}} { } @@ -31,9 +31,9 @@ DivergentColorScale DivergentColorScale::builtin(BuiltinDivergentColorScale scal { switch (scale) { case RedGrayBlue: - return DivergentColorScale(QColor(68, 68, 221), - QColor(189, 189, 189), - QColor(221, 68, 68)); + return DivergentColorScale(Color(68, 68, 221), + Color(189, 189, 189), + Color(221, 68, 68)); /*return ContinuousColorScale{ QColor(221, 68, 68), QColor(220, 69, 68), @@ -302,9 +302,9 @@ DivergentColorScale *DivergentColorScale::builtin(BuiltinDivergentColorScale sca { switch (scale) { case RedGrayBlue: - return new DivergentColorScale(QColor(68, 68, 221), - QColor(189, 189, 189), - QColor(221, 68, 68)); + return new DivergentColorScale(Color(68, 68, 221), + Color(189, 189, 189), + Color(221, 68, 68)); default: return DivergentColorScale::builtin(DivergentColorScale::RedGrayBlue, nullptr); } |