<table><tr><td style="">amankumargupta updated this revision to Diff 31322.<br />amankumargupta retitled this revision from "Add readonly properties to AnswerButton.qml to check whether correct and wrong answer animations are running." to "Add property to AnswerButton.qml to block clicks during external events.".<br />amankumargupta edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-ru3s5dcviy57a52/">(Show Details)</a>
</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/D11485">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;">To disable clicking on <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">opti</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">butt</span>ons <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">in the activity</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">during some external events</span>, we n<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">eed to check if the correct and wrong answer animations are running or not -> blockClicks: correctAnswerAnimation.running || wrongAnswerAnimation.running<br />
<br />
And to access thi</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">ow have a variable **blockClicksDuringExternalEvents** which we can assign the conditions externally during which we want to block the click</span>s, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">we need to have readonly properties in AnswerButton.qml</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">in addition</span> to <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">check whether</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">when the</span> correct <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">and</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">or</span> wrong answer animations are running<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> which is already set by default</span>.</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R2 GCompris</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D11485?vs=29913&id=31322">https://phabricator.kde.org/D11485?vs=29913&id=31322</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11485">https://phabricator.kde.org/D11485</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/AnswerButton.qml</div></div></div><br /><div><strong>To: </strong>amankumargupta, GCompris: Improvements<br /><strong>Cc: </strong>jjazeix, KDE Edu, GCompris: Improvements, narvaez, apol<br /></div>