@@ -70,16 +70,15 void ScatterPresenter::paint(QPainter *painter, const QStyleOptionGraphicsItem * | |||
|
70 | 70 | case QScatterSeries::MarkerShapeRectangle: |
|
71 | 71 | painter->drawRect(m_scenex.at(i), m_sceney.at(i), 9, 9); |
|
72 | 72 | break; |
|
73 |
case QScatterSeries::MarkerShapeTiltedRectangle: |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|
82 | } | |
|
73 | case QScatterSeries::MarkerShapeTiltedRectangle: | |
|
74 | // TODO: | |
|
75 | static const QPointF points[4] = { | |
|
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)), | |
|
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)) | |
|
80 | }; | |
|
81 | painter->drawPolygon(points, 4); | |
|
83 | 82 | break; |
|
84 | 83 | default: |
|
85 | 84 | // TODO: implement the rest of the shapes |
General Comments 0
You need to be logged in to leave comments.
Login now