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

Function foregroundColor

kdevplatform/util/widgetcolorizer.cpp:92–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92std::optional<QColor> foregroundColor(const QTextFormat& format)
93{
94 if (!format.hasProperty(QTextFormat::ForegroundBrush))
95 return std::nullopt;
96 return format.foreground().color();
97}
98
99std::optional<QColor> backgroundColor(const QTextFormat& format)
100{

Callers 2

generatedColorMethod · 0.85
collectRangesFunction · 0.85

Calls 1

hasPropertyMethod · 0.80

Tested by

no test coverage detected