Changeset View
Changeset View
Standalone View
Standalone View
ui/pageviewannotator.cpp
Show First 20 Lines • Show All 457 Lines • ▼ Show 20 Line(s) | 440 | { | |||
---|---|---|---|---|---|
458 | } | 458 | } | ||
459 | else if ( numofpoints == 2 ) | 459 | else if ( numofpoints == 2 ) | ||
460 | { | 460 | { | ||
461 | if ( m_annotElement.hasAttribute( QStringLiteral("leadFwd") ) ) | 461 | if ( m_annotElement.hasAttribute( QStringLiteral("leadFwd") ) ) | ||
462 | la->setLineLeadingForwardPoint( m_annotElement.attribute( QStringLiteral("leadFwd") ).toDouble() ); | 462 | la->setLineLeadingForwardPoint( m_annotElement.attribute( QStringLiteral("leadFwd") ).toDouble() ); | ||
463 | if ( m_annotElement.hasAttribute( QStringLiteral("leadBack") ) ) | 463 | if ( m_annotElement.hasAttribute( QStringLiteral("leadBack") ) ) | ||
464 | la->setLineLeadingBackwardPoint( m_annotElement.attribute( QStringLiteral("leadBack") ).toDouble() ); | 464 | la->setLineLeadingBackwardPoint( m_annotElement.attribute( QStringLiteral("leadBack") ).toDouble() ); | ||
465 | } | 465 | } | ||
466 | if ( m_annotElement.hasAttribute( QStringLiteral("startStyle") ) ) | ||||
467 | la->setLineStartStyle( (Okular::LineAnnotation::TermStyle)m_annotElement.attribute( QStringLiteral("startStyle") ).toInt() ); | ||||
466 | if ( m_annotElement.hasAttribute( QStringLiteral("endStyle") ) ) | 468 | if ( m_annotElement.hasAttribute( QStringLiteral("endStyle") ) ) | ||
467 | la->setLineEndStyle( (Okular::LineAnnotation::TermStyle)m_annotElement.attribute( QStringLiteral("endStyle") ).toInt() ); | 469 | la->setLineEndStyle( (Okular::LineAnnotation::TermStyle)m_annotElement.attribute( QStringLiteral("endStyle") ).toInt() ); | ||
468 | 470 | | |||
469 | la->setBoundingRectangle( normRect ); | 471 | la->setBoundingRectangle( normRect ); | ||
470 | 472 | | |||
471 | } | 473 | } | ||
472 | 474 | | |||
473 | // safety check | 475 | // safety check | ||
▲ Show 20 Lines • Show All 808 Lines • Show Last 20 Lines |