Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.0
-
None
-
38bc71e414e83e36d47761f3309859e89486d853
Description
When accessed from QML, the Component "status" property is returned as a QVariant and not a plain number value.
Example:
import Qt 4.7
Rectangle {
Component {
id: aa
Item {}
}
Component.onCompleted: {
print(aa.status)
}
}
This outputs "QVariant(QDeclarativeComponent::Status)" instead of "1".
This can be fixed by changing QDeclarativeObjectScriptClass::property() to handle enum values.