aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2018-07-10 09:43:43 +0200
committerLoïc Collignon <loic.collignon@iot.bzh>2018-07-10 19:30:02 +0200
commit3c8498d95c3f89def2eb49b668fa70cd12faace7 (patch)
treebdffc66c637b39c01db85907815c2c5a73088a36 /app
parent6ac46af41abf9f201ecfb87b554b7e45e33bce16 (diff)
Fix issue with QML variable declarationflounder_5.99.2flounder/5.99.25.99.2
It seems that you have to make a local variable to access member, you can't access a member of a member. Change-Id: I7ba4918372355d3c3d0f937a6363a1f640d10e41 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'app')
-rw-r--r--app/Mixer.qml11
1 files changed, 4 insertions, 7 deletions
diff --git a/app/Mixer.qml b/app/Mixer.qml
index 18fae40..0588b77 100644
--- a/app/Mixer.qml
+++ b/app/Mixer.qml
@@ -14,10 +14,6 @@
* limitations under the License.
*/
-// BUG: ValueChanged event is raised by sliders when you are moving the caret, should be raised only when you release it.
-// TODO: Call mixer.setVolume(sliderName, Value) on value change
-// TODO: Call mixer.getVolume(sliderName) on load
-
import QtQuick 2.6
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.0
@@ -49,10 +45,11 @@ ApplicationWindow {
}
Component.onCompleted: {
- root.volumeSlider = Qt.createComponent("VolumeSlider.qml");
- if (root.VolumeSlider.status !== Component.Ready) {
- console.log("Failed to load the VolumeSlider.qml component: " + root.volumeSlider.errorString());
+ var vs = Qt.createComponent("VolumeSlider.qml");
+ if (vs.status !== Component.Ready) {
+ console.log("Failed to load the VolumeSlider.qml component: " + vs.errorString());
}
+ root.volumeSlider = vs
mixer.open(bindingAddress);
}