@@ -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,11 +211,11 QColor QScatterSeries::color() const | |||
|
209 | 211 | void QScatterSeries::setBorderColor(const QColor &color) |
|
210 | 212 | { |
|
211 | 213 | QPen p = pen(); |
|
212 | if (p.color() != color) { | |
|
214 | if (p == QChartPrivate::defaultPen()) | |
|
215 | p = QPen(); | |
|
213 | 216 |
|
|
214 | 217 |
|
|
215 | 218 | } |
|
216 | } | |
|
217 | 219 | |
|
218 | 220 | QColor QScatterSeries::borderColor() const |
|
219 | 221 | { |
General Comments 0
You need to be logged in to leave comments.
Login now