Add contentChanged signal and setText method