Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix QObject V8 wrapping for extended types
The meta object for extended types must be marked as dynamic, to prevent their properties from being marked as IsDirect. Task-number: QTBUG-22997 Change-Id: I825f94f072cb46981706221a1044c9e2feeedcc2 Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
- Loading branch information
Aaron Kennedy
authored and
Qt by Nokia
committed
Dec 7, 2011
1 parent
01cb691
commit 1c3a4e6
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
tests/auto/declarative/qdeclarativeecmascript/data/extendedObjectPropertyLookup2.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Qt.test 1.0 | ||
import QtQuick 2.0 | ||
|
||
QtObject { | ||
id: root | ||
property MyExtendedObject a; | ||
a: MyExtendedObject { | ||
id: obj | ||
extendedProperty: 42; | ||
} | ||
function getValue() { | ||
return obj.extendedProperty; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters