int QtjambiDeclarativeListProperty::count(){
    if(canCount()){
        return QDeclarativeListProperty::count(this);
    }else{
        return -1;
    }
}
bool  QtJambiShell_QDeclarativeListProperty::__override_canCount(bool static_call)
{
    if (static_call) {
        return QtjambiDeclarativeListProperty::canCount();
    } else {
        return canCount();
    }
}
/*!
Returns the number of objects in the list, or 0 if the operation failed.
*/
int QDeclarativeListReference::count() const
{
    if (!canCount()) return 0;

    return d->property.count(&d->property);
}
示例#4
0
/*!
Returns the number of objects in the list, or 0 if the operation failed.
*/
int QQmlListReference::count() const
{
    if (!canCount()) return 0;

    return d->property.count(&d->property);
}