mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 14:40:56 +00:00
Use newlines for the help text separator on the unmapped gamepad dialog
This commit is contained in:
@@ -2,8 +2,6 @@ import QtQuick 2.0
|
|||||||
import QtQuick.Controls 2.2
|
import QtQuick.Controls 2.2
|
||||||
import QtQuick.Layouts 1.2
|
import QtQuick.Layouts 1.2
|
||||||
|
|
||||||
import SystemProperties 1.0
|
|
||||||
|
|
||||||
NavigableDialog {
|
NavigableDialog {
|
||||||
id: dialog
|
id: dialog
|
||||||
|
|
||||||
@@ -11,6 +9,7 @@ NavigableDialog {
|
|||||||
|
|
||||||
property string helpText
|
property string helpText
|
||||||
property string helpUrl : "https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting"
|
property string helpUrl : "https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting"
|
||||||
|
property string helpTextSeparator : " "
|
||||||
|
|
||||||
onOpened: {
|
onOpened: {
|
||||||
// Force keyboard focus on the label so keyboard navigation works
|
// Force keyboard focus on the label so keyboard navigation works
|
||||||
@@ -35,7 +34,7 @@ NavigableDialog {
|
|||||||
property string dialogText
|
property string dialogText
|
||||||
|
|
||||||
id: dialogLabel
|
id: dialogLabel
|
||||||
text: dialogText + (SystemProperties.hasBrowser ? (" " + helpText) : "")
|
text: dialogText + ((helpText && (standardButtons & Dialog.Help)) ? (helpTextSeparator + helpText) : "")
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
|
|
||||||
// Cap the width so the dialog doesn't grow horizontally forever. This
|
// Cap the width so the dialog doesn't grow horizontally forever. This
|
||||||
|
|||||||
@@ -405,6 +405,7 @@ ApplicationWindow {
|
|||||||
id: unmappedGamepadDialog
|
id: unmappedGamepadDialog
|
||||||
property string unmappedGamepads : ""
|
property string unmappedGamepads : ""
|
||||||
text: "Moonlight detected gamepads without a mapping:\n" + unmappedGamepads
|
text: "Moonlight detected gamepads without a mapping:\n" + unmappedGamepads
|
||||||
|
helpTextSeparator: "\n\n"
|
||||||
helpText: "Click the Help button for information on how to map your gamepads."
|
helpText: "Click the Help button for information on how to map your gamepads."
|
||||||
helpUrl: "https://github.com/moonlight-stream/moonlight-docs/wiki/Gamepad-Mapping"
|
helpUrl: "https://github.com/moonlight-stream/moonlight-docs/wiki/Gamepad-Mapping"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user