<table><tr><td style="">ahmadosama created this revision.<br />ahmadosama added a project: Okular.<br />Restricted Application added a subscriber: Okular.<br />ahmadosama requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D10504" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>These changes are done to add a button to Reset pdf forms when clicked.</p>
<p>Changes are to the following files:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">part.cpp: Just changing the text displayed to the user when the document has forms</li>
<li class="remarkup-list-item">pageview.cpp/pageview.h: add an action to reset forms just like the Show Form/Hide form (aToggleForm QAction)</li>
<li class="remarkup-list-item">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 ("").</li>
</ul>
<ul class="remarkup-list">
<li class="remarkup-list-item">the clearWidgetContents() is called when the QAction associated with it is triggered.</li>
</ul>
<p>*the clearWidgetContent() is added to the FormLineEdit, radioButton, checkBoxEdit and KTextEdit</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10504" rel="noreferrer">https://phabricator.kde.org/D10504</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>part.cpp<br />
ui/formwidgets.cpp<br />
ui/formwidgets.h<br />
ui/pageview.cpp<br />
ui/pageview.h</div></div></div><br /><div><strong>To: </strong>ahmadosama<br /><strong>Cc: </strong>Okular, michaelweghorn, ngraham, simgunz, aacid<br /></div>