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

Method LineAnnotationWidget

part/annotationwidgets.cpp:470–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468}
469
470LineAnnotationWidget::LineAnnotationWidget(Okular::Annotation *ann)
471 : AnnotationWidget(ann)
472{
473 m_lineAnn = static_cast<Okular::LineAnnotation *>(ann);
474 if (m_lineAnn->linePoints().count() == 2) {
475 m_lineType = 0; // line
476 } else if (m_lineAnn->lineClosed()) {
477 m_lineType = 1; // polygon
478 } else {
479 m_lineType = 2; // polyline
480 }
481}
482
483void LineAnnotationWidget::createStyleWidget(QFormLayout *formlayout)
484{

Callers

nothing calls this directly

Calls 3

linePointsMethod · 0.80
lineClosedMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected