QTextDocument modified blocks
I have a text editor (derived from QPlainTextEdit) with a side widget to show line numbers.
On that side widget I want to show if a block has been modified (the same way Qt Creator editor does) but I can't figure out how to detect if a text block has been modified.
Any suggestion on how I can do that?
Thanks in advance,
I found the method @ int QTextBlock::revision() const @
and played a little with it but without success. I don't know what exactly the return value is supposed to mean (the docs say nothing about it).