now use it (plus a bit of cleanup)

This commit is contained in:
David Kelly 2017-02-28 15:03:45 -07:00
parent c10b0389de
commit 678020fed6
2 changed files with 8 additions and 8 deletions

View file

@ -335,7 +335,7 @@ Item {
} }
} }
// Per-Avatar Gain Slider // Per-Avatar Gain Slider
Slider { Slider {
id: gainSlider id: gainSlider
// Size // Size
@ -345,7 +345,7 @@ Item {
anchors.verticalCenter: nameCardVUMeter.verticalCenter anchors.verticalCenter: nameCardVUMeter.verticalCenter
// Properties // Properties
visible: !isMyCard && selected visible: !isMyCard && selected
value: pal.gainSliderValueDB[uuid] ? pal.gainSliderValueDB[uuid] : 0.0 value: pal.gainSliderValueDB[uuid] ? pal.gainSliderValueDB[uuid] : Users.getAvatarGain(uuid)
minimumValue: -60.0 minimumValue: -60.0
maximumValue: 20.0 maximumValue: 20.0
stepSize: 5 stepSize: 5
@ -369,7 +369,7 @@ Item {
mouse.accepted = false mouse.accepted = false
} }
onReleased: { onReleased: {
// the above mouse.accepted seems to make this // the above mouse.accepted seems to make this
// never get called, nonetheless... // never get called, nonetheless...
mouse.accepted = false mouse.accepted = false
} }

View file

@ -2,7 +2,7 @@
// Pal.qml // Pal.qml
// qml/hifi // qml/hifi
// //
// People Action List // People Action List
// //
// Created by Howard Stearns on 12/12/2016 // Created by Howard Stearns on 12/12/2016
// Copyright 2016 High Fidelity, Inc. // Copyright 2016 High Fidelity, Inc.
@ -270,7 +270,7 @@ Rectangle {
// Anchors // Anchors
anchors.left: parent.left anchors.left: parent.left
} }
// This CheckBox belongs in the columns that contain the stateful action buttons ("Mute" & "Ignore" for now) // This CheckBox belongs in the columns that contain the stateful action buttons ("Mute" & "Ignore" for now)
// KNOWN BUG with the Checkboxes: When clicking in the center of the sorting header, the checkbox // KNOWN BUG with the Checkboxes: When clicking in the center of the sorting header, the checkbox
// will appear in the "hovered" state. Hovering over the checkbox will fix it. // will appear in the "hovered" state. Hovering over the checkbox will fix it.
@ -306,7 +306,7 @@ Rectangle {
checked = Qt.binding(function() { return (model[styleData.role])}) checked = Qt.binding(function() { return (model[styleData.role])})
} }
} }
// This Button belongs in the columns that contain the stateless action buttons ("Silence" & "Ban" for now) // This Button belongs in the columns that contain the stateless action buttons ("Silence" & "Ban" for now)
HifiControls.Button { HifiControls.Button {
id: actionButton id: actionButton
@ -538,7 +538,7 @@ Rectangle {
} }
} }
break; break;
case 'updateAudioLevel': case 'updateAudioLevel':
for (var userId in message.params) { for (var userId in message.params) {
var audioLevel = message.params[userId]; var audioLevel = message.params[userId];
// If the userId is 0, we're updating "myData". // If the userId is 0, we're updating "myData".
@ -554,7 +554,7 @@ Rectangle {
} }
} }
break; break;
case 'clearLocalQMLData': case 'clearLocalQMLData':
ignored = {}; ignored = {};
gainSliderValueDB = {}; gainSliderValueDB = {};
break; break;