Bug 105757

Summary: [Patch] Allow setting of visibility through Qt
Product: poppler Reporter: Andre Heinecke <aheinecke>
Component: qt frontendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: medium CC: nate
Version: unspecified   
Hardware: All   
OS: All   
URL: https://phabricator.kde.org/T8274
Whiteboard:
i915 platform: i915 features:
Attachments: Extends Qt5 API to allow setting visibility flags

Description Andre Heinecke 2018-03-27 07:01:08 UTC
Created attachment 138371 [details] [review]
Extends Qt5 API to allow setting visibility flags

This makes it possible to change the visibility of a Widget Annotation through the Qt bindings.

The Annot::setFlags already handles the update of the Annotation so the changed value is correctly saved.

The patch is part of change to allow Okular to implement the JavaScript hidden property of FormWidgets and support for Hide Actions.

An example document is attached to:

https://phabricator.kde.org/T8274

For testing you would need the other Patches attached to the Task.

The task also contains an autotest of this feature, so this will be automatically tested in Okulars test suite.
Comment 1 Albert Astals Cid 2018-04-07 09:52:38 UTC
Pushed :)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.