Migrated to Qt5.3.1 changed onText to onTextString