remove QTextCursor and QTextDocument from Text interface