diff options
author | Tuomo Pelkonen <tuomo.pelkonen@gmail.com> | 2021-02-15 12:07:48 +0200 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@qt.io> | 2021-02-26 05:00:30 +0000 |
commit | 9cb0e5714182df7f7d6b4fb291ffb83b614750d5 (patch) | |
tree | 201741cf97c0fde33769519097e53214506efb82 /examples | |
parent | 8461cda03dcbaf70d182656e245f1e636b580e83 (diff) |
Fix layout and signal handling in QML apps
Pick-to: 6.1
Task-number: QTBUG-90664
Change-Id: I181a3b3b2a1801665a0d876a837054aa10425c0d
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml b/examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml index 5d63bde2..714b1e78 100644 --- a/examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml +++ b/examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml @@ -104,8 +104,8 @@ Rectangle { //! [4] Connections { target: series - onSelectedBarChanged: { - if (position != series.invalidSelectionPosition) { + function onSelectedBarChanged(position) { + if (position !== series.invalidSelectionPosition) { previousSelection = position } } |