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