##// END OF EJS Templates
Fix scatter series color...
Titta Heikkala -
r2670:553ffb845c79
parent child
Show More
@@ -195,6 +195,8 void QScatterSeries::setBrush(const QBrush &brush)
195 void QScatterSeries::setColor(const QColor &color)
195 void QScatterSeries::setColor(const QColor &color)
196 {
196 {
197 QBrush b = brush();
197 QBrush b = brush();
198 if (b == QChartPrivate::defaultBrush())
199 b = QBrush();
198 if (b == QBrush())
200 if (b == QBrush())
199 b.setStyle(Qt::SolidPattern);
201 b.setStyle(Qt::SolidPattern);
200 b.setColor(color);
202 b.setColor(color);
@@ -209,10 +211,10 QColor QScatterSeries::color() const
209 void QScatterSeries::setBorderColor(const QColor &color)
211 void QScatterSeries::setBorderColor(const QColor &color)
210 {
212 {
211 QPen p = pen();
213 QPen p = pen();
212 if (p.color() != color) {
214 if (p == QChartPrivate::defaultPen())
213 p.setColor(color);
215 p = QPen();
214 setPen(p);
216 p.setColor(color);
215 }
217 setPen(p);
216 }
218 }
217
219
218 QColor QScatterSeries::borderColor() const
220 QColor QScatterSeries::borderColor() const
General Comments 0
You need to be logged in to leave comments. Login now