##// END OF EJS Templates
Scatter series marker visuals
Tero Ahola -
r228:d02101a951c6
parent child
Show More
@@ -70,16 +70,15 void ScatterPresenter::paint(QPainter *painter, const QStyleOptionGraphicsItem *
70 case QScatterSeries::MarkerShapeRectangle:
70 case QScatterSeries::MarkerShapeRectangle:
71 painter->drawRect(m_scenex.at(i), m_sceney.at(i), 9, 9);
71 painter->drawRect(m_scenex.at(i), m_sceney.at(i), 9, 9);
72 break;
72 break;
73 case QScatterSeries::MarkerShapeTiltedRectangle: {
73 case QScatterSeries::MarkerShapeTiltedRectangle:
74 // TODO:
74 // TODO:
75 static const QPointF points[4] = {
75 static const QPointF points[4] = {
76 QPointF(-1.0 + m_scenex.at(i), 0.0 + m_sceney.at(i)),
76 QPointF(-1.0 + m_scenex.at(i), 0.0 + m_sceney.at(i)),
77 QPointF(0.0 + m_scenex.at(i), 1.0 + m_sceney.at(i)),
77 QPointF(0.0 + m_scenex.at(i), 1.0 + m_sceney.at(i)),
78 QPointF(1.0 + m_scenex.at(i), 0.0 + m_sceney.at(i)),
78 QPointF(1.0 + m_scenex.at(i), 0.0 + m_sceney.at(i)),
79 QPointF(0.0 + m_scenex.at(i), -1.0 + m_sceney.at(i))
79 QPointF(0.0 + m_scenex.at(i), -1.0 + m_sceney.at(i))
80 };
80 };
81 painter->drawPolygon(points, 4);
81 painter->drawPolygon(points, 4);
82 }
83 break;
82 break;
84 default:
83 default:
85 // TODO: implement the rest of the shapes
84 // TODO: implement the rest of the shapes
General Comments 0
You need to be logged in to leave comments. Login now