| 73 | } |
| 74 | |
| 75 | Qt::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 | |
| 90 | QPen styleToPen(stats::LineDrawStyle &style) |
| 91 | { |
no outgoing calls
no test coverage detected