Fix tooltip line wrapping

This commit is contained in:
Cameron Gutman 2020-12-27 15:34:49 -06:00
parent c923d643b9
commit 998d3b2cc1
2 changed files with 6 additions and 2 deletions

View File

@ -785,7 +785,7 @@ Flickable {
ToolTip.delay: 1000
ToolTip.timeout: 5000
ToolTip.visible: hovered
ToolTip.text: qsTr("This enables mouse control without capturing the client's mouse cursor. It will not work in most games.") + "\n" +
ToolTip.text: qsTr("This enables mouse control without capturing the client's mouse cursor. It will not work in most games.") + " " +
qsTr("You can toggle this while streaming using Ctrl+Alt+Shift+M.")
}
@ -880,7 +880,7 @@ Flickable {
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" +
ToolTip.text: qsTr("Forces a single gamepad to always stay connected to the host, even if no gamepads are actually connected to this PC.") + " " +
qsTr("Only enable this option when streaming a game that doesn't support gamepads being connected after startup.")
}

View File

@ -19,6 +19,10 @@ ApplicationWindow {
visibility: (SystemProperties.hasWindowManager && StreamingPreferences.startWindowed) ? "Windowed" : "Maximized"
// This configures the maximum width of the singleton attached QML ToolTip. If left unconstrained,
// it will never insert a line break and just extend on forever.
ToolTip.toolTip.contentWidth: ToolTip.toolTip.implicitContentWidth < 400 ? ToolTip.toolTip.implicitContentWidth : 400
StackView {
id: stackView
initialItem: initialView