Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow aliases to QVariant properties
Task-number: QTBUG-22464 Change-Id: I449d4fc709d34a69116258660d721596cd9b778b Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
- Loading branch information
Aaron Kennedy
authored and
Qt by Nokia
committed
Nov 16, 2011
1 parent
e443db4
commit cb26606
Showing
3 changed files
with
30 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
15 changes: 15 additions & 0 deletions
15
tests/auto/declarative/qdeclarativeecmascript/data/qtbug_22464.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,15 @@ | ||
import QtQuick 2.0 | ||
|
||
QtObject { | ||
property alias value: inner.value | ||
property bool test: false | ||
|
||
property variant dummy: QtObject { | ||
id: inner | ||
property variant value: Qt.rgba(1, 1, 0, 1); | ||
} | ||
|
||
Component.onCompleted: { | ||
test = (value == Qt.rgba(1, 1, 0, 1)); | ||
} | ||
} |
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