============================================================================
| 660 | |
| 661 | //============================================================================ |
| 662 | void QtAdvancedStylesheetPrivate::parsePaletteColorGroup(QJsonObject& jPalette, QPalette::ColorGroup ColorGroup) |
| 663 | { |
| 664 | auto jColorGroup = jPalette.value(colorGroupString(ColorGroup)).toObject(); |
| 665 | if (jColorGroup.isEmpty()) |
| 666 | { |
| 667 | return; |
| 668 | } |
| 669 | |
| 670 | for (auto itc = jColorGroup.constBegin(); itc != jColorGroup.constEnd(); ++itc) |
| 671 | { |
| 672 | auto ColorRole = colorRoleFromString(itc.key()); |
| 673 | if (QPalette::NoRole == ColorRole) |
| 674 | { |
| 675 | continue; |
| 676 | } |
| 677 | |
| 678 | this->PaletteColors.append({ColorGroup, ColorRole, itc.value().toString()}); |
| 679 | if (ColorGroup != QPalette::Active) |
| 680 | { |
| 681 | continue; |
| 682 | } |
| 683 | } |
| 684 | } |
| 685 | |
| 686 | |
| 687 | //============================================================================ |
nothing calls this directly
no test coverage detected