@@ -584,10 +584,11 QColor QPieSlice::color() | |||||
584 | void QPieSlice::setColor(QColor color) |
|
584 | void QPieSlice::setColor(QColor color) | |
585 | { |
|
585 | { | |
586 | QBrush b = brush(); |
|
586 | QBrush b = brush(); | |
587 | if (color != b.color()) { |
|
587 | ||
588 | b.setColor(color); |
|
588 | if (b == QBrush()) | |
589 | setBrush(b); |
|
589 | b.setStyle(Qt::SolidPattern); | |
590 | } |
|
590 | b.setColor(color); | |
|
591 | setBrush(b); | |||
591 | } |
|
592 | } | |
592 |
|
593 | |||
593 | void QPieSlice::setLabelBrush(const QBrush &brush) |
|
594 | void QPieSlice::setLabelBrush(const QBrush &brush) |
General Comments 0
You need to be logged in to leave comments.
Login now