D17459: SearchBar: Add Cancel button to stop long running tasks
noreply at phabricator.kde.org
Mon Dec 10 18:21:15 GMT 2018
cullmann added a comment.
You can't really do that in threads, you need to access the buffer, otherwise you can redo all things again in extra logic (like using the ranges for getting replacement ranges....)
I still think the normal single shot stuff should do the trick in most cases.
It is more work than the processEvents call, as one needs to re-adjust the code to be able to have some callable slot that does the batch processing.
To: loh.tar, #ktexteditor, #vdg, cullmann
Cc: brauch, cullmann, abetts, kwrite-devel, kde-frameworks-devel, #ktexteditor, hase, michaelh, ngraham, bruns, demsking, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KWrite-Devel