Fix compilation for Qt4
Do less work in the constructor body