quick: Disconnect from text document changes during destruction
QSyntaxHighlighter will unset its QTextDocument when it is destroyed causing signal emission on the current TextDocument which calls in our half destroyed object.
QSyntaxHighlighter will unset its QTextDocument when it is destroyed causing signal emission on the current TextDocument which calls in our half destroyed object.