Summary: | [Patch] Add support for hide action in PDF Forms | ||
---|---|---|---|
Product: | poppler | Reporter: | Andre Heinecke <aheinecke> |
Component: | general | Assignee: | 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: |
Patch to add support for the hide action
Patch to add support for the hide action - Updated 1 |
Description
Andre Heinecke
2018-03-27 07:15:59 UTC
Thanks and sorry for the delay on reviewing! I was wondering if to future proof the Qt5 API and its users (the core API can be changed as much as we want), it would make sense to change QString targetName() const; be QVector<QString> targets() const; And for now we just return one value. This way when we implement cases b/c the application that uses poppler-qt5 will hopefully magically just work? Also can you please change the Qt5::LinkHide constructor to be like the LinkOCGState one, i.e. so that it gets the private passed in, this way it's clear "normal users" should not create one, and if we need to pass more stuff to the constructor we don't break ABI or anything since it's still a pointer. Created attachment 138702 [details] [review] Patch to add support for the hide action - Updated 1 (In reply to Albert Astals Cid from comment #1) > Thanks and sorry for the delay on reviewing! No problem. Thanks for the review :-) > I was wondering if to future proof the Qt5 API and its users (the core API > can be changed as much as we want), it would make sense to change > QString targetName() const; > be > QVector<QString> targets() const; > > And for now we just return one value. This way when we implement cases b/c > the application that uses poppler-qt5 will hopefully magically just work? Good idea. I'll change the okular patch accordingly. > Also can you please change the Qt5::LinkHide constructor to be like the > LinkOCGState one, i.e. so that it gets the private passed in, this way it's > clear "normal users" should not create one, and if we need to pass more > stuff to the constructor we don't break ABI or anything since it's still a > pointer. Changed. I didn't understand why the OCGState used this pattern and oriented myself on the others ;-) Pushed (with some improvements) |
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.