diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-09-05 01:17:17 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-09-05 01:17:17 +0200 |
commit | 7bc076eda25c4c03648ba3dc021d0d0762e1be8d (patch) | |
tree | 28d75b31de4131385e98ea0013bac36aebf8a9f0 /qmafwwatchlet/metawatch-digital.qml | |
parent | 2bb6b0e7b1a55b9e8ca5ffe7bd5b81b82e9a2933 (diff) | |
download | sowatch-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.qml | 5 |
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" } |