summaryrefslogtreecommitdiff
path: root/qmafwwatchlet/metawatch-digital.qml
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-09-05 01:17:17 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-09-05 01:17:17 +0200
commit7bc076eda25c4c03648ba3dc021d0d0762e1be8d (patch)
tree28d75b31de4131385e98ea0013bac36aebf8a9f0 /qmafwwatchlet/metawatch-digital.qml
parent2bb6b0e7b1a55b9e8ca5ffe7bd5b81b82e9a2933 (diff)
downloadsowatch-7bc076eda25c4c03648ba3dc021d0d0762e1be8d.tar.gz
sowatch-7bc076eda25c4c03648ba3dc021d0d0762e1be8d.zip
improve volume controlsowatch_0_4_3
Diffstat (limited to 'qmafwwatchlet/metawatch-digital.qml')
-rw-r--r--qmafwwatchlet/metawatch-digital.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/qmafwwatchlet/metawatch-digital.qml b/qmafwwatchlet/metawatch-digital.qml
index 02a5460..18a4ffc 100644
--- a/qmafwwatchlet/metawatch-digital.qml
+++ b/qmafwwatchlet/metawatch-digital.qml
@@ -78,8 +78,9 @@ Rectangle {
anchors.bottom: parent.bottom
anchors.margins: 4
- visible: volumeBar.visible
- height: (volumeControl.volume * (parent.height - anchors.margins*2)) / (volumeControl.max - volumeControl.min)
+ height: volumeBar.visible ?
+ (volumeControl.volume * (parent.height - anchors.margins*2)) / (volumeControl.max - volumeControl.min) :
+ 0; // Avoid unnecessary updates when not visible.
color: "white"
}