D17459: SearchBar: Add Cancel button to stop long running tasks
Christoph Cullmann
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.
REPOSITORY
R39 KTextEditor
REVISION DETAIL
https://phabricator.kde.org/D17459
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...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20181210/9b8e66e8/attachment.html>
More information about the KWrite-Devel
mailing list