Hide ProgressBar inner item when value is 0

This fixes the situation where an empty progress bar still shows a little spot on the left.

REVIEW: 120489
This commit is contained in:
Kai Uwe Broulik 2014-10-04 22:41:40 +02:00
parent 759b75314d
commit 7cf9fb93d8

View File

@ -103,6 +103,7 @@ Item {
width: Math.max(margins.left + margins.right, (indeterminate ? units.gridUnit*2 : range.position))
height: Math.max(margins.top + margins.bottom, (indeterminate ? units.gridUnit*2 : range.position))
visible: indeterminate || range.position > 0
}
//this can't reference its parent because needs to be loaded before it,
//so never bind background to anything here