##// 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 195 void QScatterSeries::setColor(const QColor &color)
196 196 {
197 197 QBrush b = brush();
198 if (b == QChartPrivate::defaultBrush())
199 b = QBrush();
198 200 if (b == QBrush())
199 201 b.setStyle(Qt::SolidPattern);
200 202 b.setColor(color);
@@ -209,10 +211,10 QColor QScatterSeries::color() const
209 211 void QScatterSeries::setBorderColor(const QColor &color)
210 212 {
211 213 QPen p = pen();
212 if (p.color() != color) {
213 p.setColor(color);
214 setPen(p);
215 }
214 if (p == QChartPrivate::defaultPen())
215 p = QPen();
216 p.setColor(color);
217 setPen(p);
216 218 }
217 219
218 220 QColor QScatterSeries::borderColor() const
General Comments 0
You need to be logged in to leave comments. Login now