MCPcopy Create free account
hub / github.com/KDE/kdevelop / backgroundColor

Function backgroundColor

kdevplatform/util/widgetcolorizer.cpp:99–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99std::optional<QColor> backgroundColor(const QTextFormat& format)
100{
101 if (!format.hasProperty(QTextFormat::BackgroundBrush))
102 return std::nullopt;
103 return format.background().color();
104}
105
106/**
107 * Inverting is used for white colors, because it is assumed white in light color scheme

Callers 1

collectRangesFunction · 0.70

Calls 1

hasPropertyMethod · 0.80

Tested by

no test coverage detected