Okular Annotation: add support for line ending style for Straight Line tool

Authored by knambiar on Tue, May 7, 8:56 AM.

Description

Okular Annotation: add support for line ending style for Straight Line tool

Summary:
Poppler and Okular already have support for specifying Line End style (TermStyle) for the Straight Line tool. Expose the functionality in configuration and hook up the correct slots.

Configure annotations (before):

Configure annotations (after):

Straight Line tool with Open Arrow end in action:

Test Plan:

  1. Open a PDF in Okular
  2. Enable Review
  3. Right click on Review toolbar and Configure annotations
  4. Create (or edit existing) Straight Line tool
  5. Set the ‘Line End’ option on Style and Apply
  6. Use the Straight Line tool to draw a line and check the line ending style.

Reviewers: Okular, VDG, sander, ngraham

Reviewed By: VDG, sander, ngraham

Subscribers: pino, sander, davidhurka, tobiasdeiminger, ngraham, okular-devel

Tags: Okular

Differential Revision: https://phabricator.kde.org/D20760