| 228 | } |
| 229 | |
| 230 | SmoothPath SmoothPathEngine::endSmoothPath() |
| 231 | { |
| 232 | m_creationCompleted = false; |
| 233 | |
| 234 | QColor color(m_annotElement.hasAttribute(QStringLiteral("color")) ? m_annotElement.attribute(QStringLiteral("color")) : m_engineColor); |
| 235 | |
| 236 | const int width = m_annotElement.attribute(QStringLiteral("width"), QStringLiteral("2")).toInt(); |
| 237 | const qreal opacity = m_annotElement.attribute(QStringLiteral("opacity"), QStringLiteral("1.0")).toDouble(); |
| 238 | |
| 239 | return SmoothPath(points, QPen(color, width), opacity, compositionMode); |
| 240 | } |
| 241 | |
| 242 | /* kate: replace-tabs on; indent-width 4; */ |
no test coverage detected