summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2014-06-05 12:00:24 +0300
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2014-06-05 12:03:16 +0300
commitcfbfbea7d932f98c3f541bb4fc3e975ffb7a5658 (patch)
treebed376368e9611c751cf1dd75b85de2827d67325 /examples/datavisualization/qmllegend/qml/qmllegend/LegendItem.qml
parent8435c15d224a4e9db0920ecd33c4bea3e70d83bf (diff)
parentc51e0f83ef6dd9e85db6953995585ba0cafb35d7 (diff)
Merge branch 'develop'
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