[okular] [Bug 288042] Option to reset forms (PDF)

Ahmad Osama bugzilla_noreply at kde.org
Tue Feb 13 17:21:41 UTC 2018


https://bugs.kde.org/show_bug.cgi?id=288042

Ahmad Osama <ahmad.osama.moh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ahmad.osama.moh at gmail.com

--- Comment #5 from Ahmad Osama <ahmad.osama.moh at gmail.com> ---
Created attachment 110619
  --> https://bugs.kde.org/attachment.cgi?id=110619&action=edit
The attachment contains a zip file with 3 patches containing the changes to 5
files: part.cpp/pageview.cpp/pageview.h/formwidget.cpp/formwidget.h

These changes are done to add a button to Reset pdf forms when clicked.

Changes are to the following files:

* part.cpp: Just changing the text displayed to the user when the document has
forms
* pageview.cpp/pageview.h: add an action to reset forms just like the Show
Form/Hide form (aToggleForm QAction)
* formwidget.cpp/formwidger.h: add a virtual function 'clearWidgetContents()'
to the parent class (FormWidgetIface) that clears the contents of the widget,
then overriding this function in its children to clear the contents differently
in each widget, ex. clearing the FormLineEditClass (that iherits from
QLineEdit) is done by setting text to an empty string ("").

* the clearWidgetContents() is called when the QAction associated with it is
triggered.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list