Fix the clipboard issue with a custom
QPlainTextEdit like in the original.