Adapt qtdeclarative to the change in QMetaObject