From 4d83c6a167e88951ea83c98b6edb32db9ebe376e Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Thu, 21 May 2015 17:52:26 -0300 Subject: Updated color scale with better distinguishable colors. --- scatterplot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scatterplot.cpp b/scatterplot.cpp index f5d0dbf..b0c8034 100644 --- a/scatterplot.cpp +++ b/scatterplot.cpp @@ -17,7 +17,6 @@ static const float PI = 3.1415f; Scatterplot::Scatterplot(QQuickItem *parent) : QQuickItem(parent) - , m_dragOriginPos(-1.0, -1.0) , m_colorScale{ QColor("#1f77b4"), QColor("#ff7f0e"), @@ -27,7 +26,7 @@ Scatterplot::Scatterplot(QQuickItem *parent) QColor("#8c564b"), QColor("#e377c2"), QColor("#7f7f7f"), - QColor("#bcbd22"), + QColor("#17becf"), } { setClip(true); @@ -218,6 +217,7 @@ void Scatterplot::mouseMoveEvent(QMouseEvent *event) case INTERACTION_MOVING: m_dragCurrentPos = event->localPos(); update(); + break; } } -- cgit v1.2.3