<table><tr><td style="">aacid added a comment.
</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/D10932">View Revision</a></tr></table><br /><div><div><p>Sorry for the late answer.</p>
<p>I've been thinking about this and as all the stuff random user ask for, it shows they have not really thought much about it, and it is probably my fault having set this as a junio job.</p>
<p>What does "Reset" actually mean? Is clearing a field resetting it? What if the field had "BLA" as contents when you opened it? Wouldn't resetting mean going back to "BLA" instead of empty?</p>
<p>Ok, so this could be solved by changing from "Reset Forms" to "Clear Forms".</p>
<p>"Clear" has a more "make this empty" meaning.</p>
<p>But how do you actually clear a Radio button? When one of the N buttons has to be selected by definition?</p>
<p>One could say "ok, let's ignore radio buttons".</p>
<p>But then the biggest problem shows up and is on change actions linked to forms. You can have javascript linked to changing contents on form fields, and for example you could have one that said "if text of field A is empty put text 'BLA' on field B".</p>
<p>What would be the correct output of running "Clear Forms"? Should field B contain "BLA" or not?</p>
<p>And i'm going to say probably, but how do you actually achieve that programatically? I don't see a way since you'll go "set field A to be empty" -> "this triggers its execute change action" -> "set field B to empty"</p>
<p>So my current thinking is closing the feature request as won't fix giving a version of the explanation written above.</p>
<p>What do you think? Do you think what i say makes sense or am i saying stupid things?</p>
<p>And if we were to throw away this code, how sad would you be? Have you at least learnt a bit about how testing/undo commands in Qt work?</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/D10932">https://phabricator.kde.org/D10932</a></div></div><br /><div><strong>To: </strong>ahmadosama, Okular, aacid<br /><strong>Cc: </strong>cfeck, ngraham, aacid, Okular, michaelweghorn<br /></div>