MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / parsePaletteColorGroup

Method parsePaletteColorGroup

src/theme/QtAdvancedStylesheet.cpp:662–684  ·  view source on GitHub ↗

============================================================================

Source from the content-addressed store, hash-verified

660
661//============================================================================
662void 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//============================================================================

Callers

nothing calls this directly

Calls 2

colorGroupStringFunction · 0.85
colorRoleFromStringFunction · 0.85

Tested by

no test coverage detected