MCPcopy Create free account
hub / github.com/KDE/okular / endSmoothPath

Method endSmoothPath

part/annotationtools.cpp:230–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230SmoothPath 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; */

Callers 1

Calls 2

SmoothPathClass · 0.85
toDoubleMethod · 0.80

Tested by

no test coverage detected