D10504: Bug 288042 - Option to reset forms
Ahmad Osama
noreply at phabricator.kde.org
Wed Feb 14 12:24:34 UTC 2018
ahmadosama created this revision.
ahmadosama added a project: Okular.
Restricted Application added a subscriber: Okular.
ahmadosama requested review of this revision.
REVISION SUMMARY
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.
*the clearWidgetContent() is added to the FormLineEdit, radioButton, checkBoxEdit and KTextEdit
REPOSITORY
R223 Okular
REVISION DETAIL
https://phabricator.kde.org/D10504
AFFECTED FILES
part.cpp
ui/formwidgets.cpp
ui/formwidgets.h
ui/pageview.cpp
ui/pageview.h
To: ahmadosama
Cc: #okular, michaelweghorn, ngraham, simgunz, aacid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20180214/9026615c/attachment.html>
More information about the Okular-devel
mailing list