summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2014-06-03 10:36:46 +0300
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2014-06-03 10:44:39 +0300
commit9beca180adc3109e9e258cbf54459960b33fa7d6 (patch)
tree97a3377cb26d9d9e6964c878bc2bfd97b28f67ad /examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml
parentd946344ac21393e4b08e42e657d217a0981840f9 (diff)
Misc fixes for bugs found during examples testing
- qmlbars TableView year/month display got messed up when scrolled. - qmllegend black background on transparent item bug was back due to some changes in 5.3. Worked around the issue differently. - qmloscilloscope displayed warnings about circular property binding. - Incorrect count was used to determine amount of labels for rows in bar charts. Change-Id: Id5851019af258c256a92648561bb8ce766993b5c Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml')
-rw-r--r--examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml b/examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml
index 50be7a8d..f8c71650 100644
--- a/examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml
+++ b/examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml
@@ -31,6 +31,12 @@ Rectangle {
id: legendItem
state: "unselected"
+ // Workaround for a layout bug that in some situations causes changing from fully opaque color
+ // to a transparent one to use black background instead of what is actually under the items.
+ // Having the control always slighthly transparent forces the background to be refreshed
+ // properly.
+ opacity: 0.999
+
//! [1]
RowLayout {
anchors.fill: parent