-
Bug
-
Resolution: Done
-
P4: Low
-
5.15.0
-
-
44af3bd0f7b5a087f878ae626bc36250586c6e49 (qt/qtdeclarative/dev) ad47d70e2289d59625cd405fa54c5de2db68ad82 (qt/qtdeclarative/5.15)
-
Da Vinci sprint 11
Please update the documentation code snippets using the latest syntax, here https://doc.qt.io/qt-5/qtqml-syntax-signals.html :
Connections {
target: button
onClicked: {
rect.color = Qt.rgba(Math.random(), Math.random(), Math.random(),
1);
}
}
Should be:
Connections {
target: button
function onClicked() {
rect.color = Qt.rgba(Math.random(), Math.random(), Math.random(),
1);
}
}
| For Gerrit Dashboard: QTBUG-85177 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 305158,2 | Doc: Update QML connection inline snippet | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 305193,2 | Doc: Update QML connection inline snippet | 5.15 | qt/qtdeclarative | Status: MERGED | +2 | 0 |