Text editor based on PtQt4