mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-04 00:36:36 +00:00
Reorganize settings and improve descriptions
This commit is contained in:
parent
c7ddb54e67
commit
f7ffb30bc6
@ -667,6 +667,22 @@ Flickable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
CheckBox {
|
||||||
|
id: audioPcCheck
|
||||||
|
width: parent.width
|
||||||
|
text: qsTr("Mute host PC speakers while streaming")
|
||||||
|
font.pointSize: 12
|
||||||
|
checked: !StreamingPreferences.playAudioOnHost
|
||||||
|
onCheckedChanged: {
|
||||||
|
StreamingPreferences.playAudioOnHost = !checked
|
||||||
|
}
|
||||||
|
|
||||||
|
ToolTip.delay: 1000
|
||||||
|
ToolTip.timeout: 5000
|
||||||
|
ToolTip.visible: hovered
|
||||||
|
ToolTip.text: qsTr("You must restart any game currently in progress for this setting to take effect")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -733,7 +749,7 @@ Flickable {
|
|||||||
spacing: 15
|
spacing: 15
|
||||||
|
|
||||||
GroupBox {
|
GroupBox {
|
||||||
id: gamepadSettingsGroupBox
|
id: inputSettingsGroupBox
|
||||||
width: (parent.width - (parent.leftPadding + parent.rightPadding))
|
width: (parent.width - (parent.leftPadding + parent.rightPadding))
|
||||||
padding: 12
|
padding: 12
|
||||||
title: "<font color=\"skyblue\">" + qsTr("Input Settings") + "</font>"
|
title: "<font color=\"skyblue\">" + qsTr("Input Settings") + "</font>"
|
||||||
@ -743,23 +759,6 @@ Flickable {
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
spacing: 5
|
spacing: 5
|
||||||
|
|
||||||
CheckBox {
|
|
||||||
id: singleControllerCheck
|
|
||||||
width: parent.width
|
|
||||||
text: qsTr("Force gamepad #1 always present")
|
|
||||||
font.pointSize: 12
|
|
||||||
checked: !StreamingPreferences.multiController
|
|
||||||
onCheckedChanged: {
|
|
||||||
StreamingPreferences.multiController = !checked
|
|
||||||
}
|
|
||||||
|
|
||||||
ToolTip.delay: 1000
|
|
||||||
ToolTip.timeout: 5000
|
|
||||||
ToolTip.visible: hovered
|
|
||||||
ToolTip.text: qsTr("Forces a single gamepad to always stay connected to the host, even if no gamepads are actually connected to this PC.") + "\n" +
|
|
||||||
qsTr("Only enable this option when streaming a game that doesn't support gamepads being connected after startup.")
|
|
||||||
}
|
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: absoluteMouseCheck
|
id: absoluteMouseCheck
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
@ -783,7 +782,7 @@ Flickable {
|
|||||||
id: absoluteTouchCheck
|
id: absoluteTouchCheck
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
width: parent.width
|
width: parent.width
|
||||||
text: qsTr("Use touchscreen as a trackpad")
|
text: qsTr("Use touchscreen as a virtual trackpad")
|
||||||
font.pointSize: 12
|
font.pointSize: 12
|
||||||
checked: !StreamingPreferences.absoluteTouchMode
|
checked: !StreamingPreferences.absoluteTouchMode
|
||||||
onCheckedChanged: {
|
onCheckedChanged: {
|
||||||
@ -796,6 +795,48 @@ Flickable {
|
|||||||
ToolTip.text: qsTr("When checked, the touchscreen acts like a trackpad. When unchecked, the touchscreen will directly control the mouse pointer.")
|
ToolTip.text: qsTr("When checked, the touchscreen acts like a trackpad. When unchecked, the touchscreen will directly control the mouse pointer.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CheckBox {
|
||||||
|
id: swapMouseButtonsCheck
|
||||||
|
hoverEnabled: true
|
||||||
|
width: parent.width
|
||||||
|
text: qsTr("Swap left and right mouse buttons")
|
||||||
|
font.pointSize: 12
|
||||||
|
checked: StreamingPreferences.swapMouseButtons
|
||||||
|
onCheckedChanged: {
|
||||||
|
StreamingPreferences.swapMouseButtons = checked
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GroupBox {
|
||||||
|
id: gamepadSettingsGroupBox
|
||||||
|
width: (parent.width - (parent.leftPadding + parent.rightPadding))
|
||||||
|
padding: 12
|
||||||
|
title: "<font color=\"skyblue\">" + qsTr("Gamepad Settings") + "</font>"
|
||||||
|
font.pointSize: 12
|
||||||
|
|
||||||
|
Column {
|
||||||
|
anchors.fill: parent
|
||||||
|
spacing: 5
|
||||||
|
|
||||||
|
CheckBox {
|
||||||
|
id: singleControllerCheck
|
||||||
|
width: parent.width
|
||||||
|
text: qsTr("Force gamepad #1 always present")
|
||||||
|
font.pointSize: 12
|
||||||
|
checked: !StreamingPreferences.multiController
|
||||||
|
onCheckedChanged: {
|
||||||
|
StreamingPreferences.multiController = !checked
|
||||||
|
}
|
||||||
|
|
||||||
|
ToolTip.delay: 1000
|
||||||
|
ToolTip.timeout: 5000
|
||||||
|
ToolTip.visible: hovered
|
||||||
|
ToolTip.text: qsTr("Forces a single gamepad to always stay connected to the host, even if no gamepads are actually connected to this PC.") + "\n" +
|
||||||
|
qsTr("Only enable this option when streaming a game that doesn't support gamepads being connected after startup.")
|
||||||
|
}
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: gamepadMouseCheck
|
id: gamepadMouseCheck
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
@ -812,23 +853,6 @@ Flickable {
|
|||||||
ToolTip.visible: hovered
|
ToolTip.visible: hovered
|
||||||
ToolTip.text: qsTr("When enabled, holding the Start button will toggle mouse mode")
|
ToolTip.text: qsTr("When enabled, holding the Start button will toggle mouse mode")
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckBox {
|
|
||||||
id: swapMouseButtonsCheck
|
|
||||||
hoverEnabled: true
|
|
||||||
width: parent.width
|
|
||||||
text: qsTr("Swap mouse buttons")
|
|
||||||
font.pointSize: 12
|
|
||||||
checked: StreamingPreferences.swapMouseButtons
|
|
||||||
onCheckedChanged: {
|
|
||||||
StreamingPreferences.swapMouseButtons = checked
|
|
||||||
}
|
|
||||||
|
|
||||||
ToolTip.delay: 1000
|
|
||||||
ToolTip.timeout: 3000
|
|
||||||
ToolTip.visible: hovered
|
|
||||||
ToolTip.text: qsTr("When checked, swap the left and right mouse buttons")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -854,17 +878,6 @@ Flickable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckBox {
|
|
||||||
id: audioPcCheck
|
|
||||||
width: parent.width
|
|
||||||
text: qsTr("Play audio on host PC")
|
|
||||||
font.pointSize: 12
|
|
||||||
checked: StreamingPreferences.playAudioOnHost
|
|
||||||
onCheckedChanged: {
|
|
||||||
StreamingPreferences.playAudioOnHost = checked
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: quitAppAfter
|
id: quitAppAfter
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
Loading…
x
Reference in New Issue
Block a user