MCPcopy Create free account
hub / github.com/IENT/YUView / patternToQPenStyle

Function patternToQPenStyle

YUViewLib/src/statistics/StatisticsDataPainting.cpp:75–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75Qt::PenStyle patternToQPenStyle(stats::Pattern &pattern)
76{
77 if (pattern == stats::Pattern::Solid)
78 return Qt::SolidLine;
79 if (pattern == stats::Pattern::Dash)
80 return Qt::DashLine;
81 if (pattern == stats::Pattern::Dot)
82 return Qt::DotLine;
83 if (pattern == stats::Pattern::DashDot)
84 return Qt::DashDotLine;
85 if (pattern == stats::Pattern::DashDotDot)
86 return Qt::DashDotDotLine;
87 return Qt::SolidLine;
88}
89
90QPen styleToPen(stats::LineDrawStyle &style)
91{

Callers 3

styleToPenFunction · 0.85
paintVectorFunction · 0.85
paintStatisticsDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected