From d02101a951c6fd7b2e04de59bce51b04259b978c 2012-02-20 14:45:28 From: Tero Ahola Date: 2012-02-20 14:45:28 Subject: [PATCH] Scatter series marker visuals --- diff --git a/src/scatterseries/scatterpresenter.cpp b/src/scatterseries/scatterpresenter.cpp index 0a4598a..0e25348 100644 --- a/src/scatterseries/scatterpresenter.cpp +++ b/src/scatterseries/scatterpresenter.cpp @@ -70,16 +70,15 @@ void ScatterPresenter::paint(QPainter *painter, const QStyleOptionGraphicsItem * case QScatterSeries::MarkerShapeRectangle: painter->drawRect(m_scenex.at(i), m_sceney.at(i), 9, 9); break; - case QScatterSeries::MarkerShapeTiltedRectangle: { - // TODO: - static const QPointF points[4] = { - QPointF(-1.0 + m_scenex.at(i), 0.0 + m_sceney.at(i)), - QPointF(0.0 + m_scenex.at(i), 1.0 + m_sceney.at(i)), - QPointF(1.0 + m_scenex.at(i), 0.0 + m_sceney.at(i)), - QPointF(0.0 + m_scenex.at(i), -1.0 + m_sceney.at(i)) - }; - painter->drawPolygon(points, 4); - } + case QScatterSeries::MarkerShapeTiltedRectangle: + // TODO: + static const QPointF points[4] = { + QPointF(-1.0 + m_scenex.at(i), 0.0 + m_sceney.at(i)), + QPointF(0.0 + m_scenex.at(i), 1.0 + m_sceney.at(i)), + QPointF(1.0 + m_scenex.at(i), 0.0 + m_sceney.at(i)), + QPointF(0.0 + m_scenex.at(i), -1.0 + m_sceney.at(i)) + }; + painter->drawPolygon(points, 4); break; default: // TODO: implement the rest of the shapes