D19432: [text thumbnailer] Use KSyntaxHighlighting for text rendering

Friedrich W. H. Kossebau noreply at phabricator.kde.org
Fri Mar 1 14:46:25 GMT 2019


kossebau added a comment.


  @vkrause : Any idea why I get `org.kde.ksyntaxhighlighting: Repository got deleted while a highlighter is still active!` with this code? The `KSyntaxHighlighting::SyntaxHighlighter` instance and the `QTextDocument` instance are both created on the stack in the scope of the method, while the `KSyntaxHighlighting::Repository` is a member of the class.
  Any idea why would a highlighter outlives the repoository, or what else would trigger that warning?

REPOSITORY
  R320 KIO Extras

REVISION DETAIL
  https://phabricator.kde.org/D19432

To: kossebau, broulik
Cc: vkrause, cfeck, kde-frameworks-devel, kfm-devel, alexde, feverfew, michaelh, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, emmanuelp, mikesomov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20190301/2ab65beb/attachment.htm>


More information about the kfm-devel mailing list