<table><tr><td style="">loh.tar 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/D17459">View Revision</a></tr></table><br /><div><div><p>Hmpf! Some googling didn't help. Just some thoughts.</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Adding a couple of checks where ever just to block in case of a running S&R could be a little cumbersome</li>
<li class="remarkup-list-item">What we need would be an QObject::processEvents, so that only the Cancle button is a live but no other stuff</li>
<li class="remarkup-list-item">Can we install an eventFilter and ignore all except our Cancel button?</li>
<li class="remarkup-list-item">QCoreApplication::processEvents take an optional argument e.g. QEventLoop::ExcludeUserInputEvents, nice but didn't help</li>
</ul>
<p>I have tried the S&R plugin with the fat file. That's smart enough to see that the task is too heavy and stopped after a couple of hits when searching. The Cancel button there (almost) didn't appear in this use case when invoke the "replace all" action. Obviously is it only updated between file changes or so. Hence, we can not profit from his functionality.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17459">https://phabricator.kde.org/D17459</a></div></div><br /><div><strong>To: </strong>loh.tar, KTextEditor, VDG, cullmann<br /><strong>Cc: </strong>cullmann, abetts, kwrite-devel, kde-frameworks-devel, KTextEditor, hase, michaelh, ngraham, bruns, demsking, sars, dhaumann<br /></div>