aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2015-05-21 17:52:26 -0300
committerSamuel Fadel <samuelfadel@gmail.com>2015-05-21 17:52:26 -0300
commit9706895943dcef136c67ebdaea4c01bfc81ce5d1 (patch)
tree204a6de870e7b61959f220c2332f88bda6400997
parent896c35b50e7a1a4ba40007fcca0982b70fc0d187 (diff)
Updated color scale with better distinguishable colors.
-rw-r--r--scatterplot.cpp4
1 files 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;
}
}