@@ -70,7 +70,7 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 |
|
|
74 | // TODO: | |
75 |
|
|
75 | static const QPointF points[4] = { | |
76 |
|
|
76 | QPointF(-1.0 + m_scenex.at(i), 0.0 + m_sceney.at(i)), | |
@@ -79,7 +79,6 void ScatterPresenter::paint(QPainter *painter, const QStyleOptionGraphicsItem * | |||||
79 |
|
|
79 | QPointF(0.0 + m_scenex.at(i), -1.0 + m_sceney.at(i)) | |
80 |
|
|
80 | }; | |
81 |
|
|
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