changing position of the mute warning setting

This commit is contained in:
Wayne Chen 2019-03-11 16:02:18 -07:00
parent 36c2358dc0
commit ca5ff3381b

View file

@ -125,22 +125,6 @@ Rectangle {
} }
} }
HifiControlsUit.Switch {
id: stereoInput;
height: root.switchHeight;
switchWidth: root.switchWidth;
labelTextOn: qsTr("Stereo input");
backgroundOnColor: "#E3E3E3";
checked: AudioScriptingInterface.isStereoInput;
onCheckedChanged: {
AudioScriptingInterface.isStereoInput = checked;
checked = Qt.binding(function() { return AudioScriptingInterface.isStereoInput; }); // restore binding
}
}
}
ColumnLayout {
spacing: 24;
HifiControlsUit.Switch { HifiControlsUit.Switch {
height: root.switchHeight; height: root.switchHeight;
switchWidth: root.switchWidth; switchWidth: root.switchWidth;
@ -152,6 +136,23 @@ Rectangle {
checked = Qt.binding(function() { return AudioScriptingInterface.noiseReduction; }); // restore binding checked = Qt.binding(function() { return AudioScriptingInterface.noiseReduction; }); // restore binding
} }
} }
}
ColumnLayout {
spacing: 24;
HifiControlsUit.Switch {
id: warnMutedSwitch
height: root.switchHeight;
switchWidth: root.switchWidth;
labelTextOn: qsTr("Warn when muted");
backgroundOnColor: "#E3E3E3";
checked: AudioScriptingInterface.warnWhenMuted;
onClicked: {
AudioScriptingInterface.warnWhenMuted = checked;
checked = Qt.binding(function() { return AudioScriptingInterface.warnWhenMuted; }); // restore binding
}
}
HifiControlsUit.Switch { HifiControlsUit.Switch {
id: audioLevelSwitch id: audioLevelSwitch
@ -165,19 +166,20 @@ Rectangle {
checked = Qt.binding(function() { return AvatarInputs.showAudioTools; }); // restore binding checked = Qt.binding(function() { return AvatarInputs.showAudioTools; }); // restore binding
} }
} }
}
RowLayout { HifiControlsUit.Switch {
spacing: muteMic.spacing*2; id: stereoInput;
AudioControls.CheckBox { height: root.switchHeight;
spacing: muteMic.spacing switchWidth: root.switchWidth;
text: qsTr("Warn when muted"); labelTextOn: qsTr("Stereo input");
checked: AudioScriptingInterface.warnWhenMuted; backgroundOnColor: "#E3E3E3";
onClicked: { checked: AudioScriptingInterface.isStereoInput;
AudioScriptingInterface.warnWhenMuted = checked; onCheckedChanged: {
checked = Qt.binding(function() { return AudioScriptingInterface.warnWhenMuted; }); // restore binding AudioScriptingInterface.isStereoInput = checked;
checked = Qt.binding(function() { return AudioScriptingInterface.isStereoInput; }); // restore binding
} }
} }
} }
} }