@@ -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,11 +211,11 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()) | |
|
215 | p = QPen(); | |||
213 |
|
|
216 | p.setColor(color); | |
214 |
|
|
217 | setPen(p); | |
215 | } |
|
218 | } | |
216 | } |
|
|||
217 |
|
219 | |||
218 | QColor QScatterSeries::borderColor() const |
|
220 | QColor QScatterSeries::borderColor() const | |
219 | { |
|
221 | { |
General Comments 0
You need to be logged in to leave comments.
Login now