Remove hardcoded assumptions about methods in QObject
Remove hardcoded assumptions about methods in QObject

This commit ensures that the number of methods available from the
QObject::staticMetaObject is looked up rather than hardcoded to
a value in the QDeclarativePropertyCache.

Task-number: QTBUG-22985
Change-Id: If61c02f0d32066cddaeac2d8143c58db97acb609
Reviewed-by: Alan Alpert <4f50b946ff0c825a60d8643b1c54e3b41e1a7228@nokia.com>

corngood/qtdeclarative,jfaust/qtdeclarative,qmlc/qtdeclarative,crobertd/qtdeclarative,mgrunditz/qtdeclarative-2d,crobertd/qtdeclarative,corngood/qtdeclarative,qmlc/qtdeclarative,qmlc/qtdeclarative,jfaust/qtdeclarative,qmlc/qtdeclarative,jfaust/qtdeclarative,qmlc/qtdeclarative,mgrunditz/qtdeclarative-2d,matthewvogt/qtdeclarative,mgrunditz/qtdeclarative-2d,crobertd/qtdeclarative,matthewvogt/qtdeclarative,jfaust/qtdeclarative,mgrunditz/qtdeclarative-2d,corngood/qtdeclarative,matthewvogt/qtdeclarative,crobertd/qtdeclarative,mgrunditz/qtdeclarative-2d,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,jfaust/qtdeclarative,matthewvogt/qtdeclarative,mgrunditz/qtdeclarative-2d,crobertd/qtdeclarative,corngood/qtdeclarative,crobertd/qtdeclarative,matthewvogt/qtdeclarative,qmlc/qtdeclarative,corngood/qtdeclarative,matthewvogt/qtdeclarative,crobertd/qtdeclarative,corngood/qtdeclarative,jfaust/qtdeclarative,mgrunditz/qtdeclarative-2d,qmlc/qtdeclarative,corngood/qtdeclarative,qmlc/qtdeclarative,jfaust/qtdeclarative