-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate property binding evaluation fix from qtbase
This is basically the same as QTBUG-105204, only with the QML engine being involved. Fixes: QTBUG-104982 Pick-to: 6.4 6.3 6.2 Change-Id: I5afaadedcd7af41198702a8f2331703b4f6ef2e7 Reviewed-by: Sami Shalayel <sami.shalayel@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
- Loading branch information
Showing
3 changed files
with
47 additions
and
3 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
19 changes: 19 additions & 0 deletions
19
tests/auto/qml/qqmlecmascript/data/qpropertyBindingNoQPropertyCapture.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,19 @@ | ||
import QtQuick | ||
|
||
Item { | ||
objectName: "redRectangle" | ||
id: redRectangle | ||
|
||
property bool b: false | ||
function toggle() { b = !b } | ||
width: b ? 600 : 500 | ||
|
||
Item { | ||
id: blueRectangle | ||
objectName: "blueRectangle" | ||
// width: b ? (100 + redRectangle.width / 2) : 25 | ||
width: b ? redRectangle.width : 25 | ||
} | ||
|
||
property int blueRectangleWidth: blueRectangle.width | ||
} |
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