onSurfaceChanged: {
if (sessionContainer.surface) {
"""
Just a suggestion (feel free to change it or not):
I think it's better to use property aliases in such cases as they seem to be more efficient (besides being more concise) than property bindings. But who knows, maybe they boil down to the same in the qml engine...
In tests/qmltests/ Stages/ tst_SessionCont ainer.qml
"""
tryCompare( sessionContaine r, "orientation", sessionContaine r.orientation) ;
"""
Huh!? You're comparing sessionContaine r.orientation to itself? childContainer, "orientation", sessionContaine r.orientation) ;
You probably meant:
tryCompare(
Calling it rootSessionCont ainer instead of just sessionContainer would also help to clarify things. But that's just a suggestion.
------- ------- ------- ------- ------- ------- ------- ----
In tests/qmltests/ Stages/ tst_SessionCont ainer.qml
"""
/* Text orientation changes are propagated to all children immediately */
"""
typo. s/Text/Test
------- ------- ------- ------- ------- ------- ------- -----
""" ApplicationWind ow.qml 2014-09-03 16:38:10 +0000 ApplicationWind ow.qml 2014-09-11 10:41:11 +0000
--- qml/Stages/
+++ qml/Stages/
@@ -27,6 +27,7 @@ Item {
// to be set from outside
property QtObject application
+ property int orientation
QtObject {
anchors. fill: parent
id: d
@@ -111,6 +112,7 @@ Item {
id: sessionContainer
session: application ? application.session : null
+ orientation: root.orientation
if (sessionContain
"""
Just a suggestion (feel free to change it or not):
I think it's better to use property aliases in such cases as they seem to be more efficient (besides being more concise) than property bindings. But who knows, maybe they boil down to the same in the qml engine...