mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-04 00:36:36 +00:00
Cap the maximum width of the error dialogs
This commit is contained in:
parent
c724902508
commit
bc38c302ed
@ -1,5 +1,6 @@
|
|||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
import QtQuick.Controls 2.2
|
import QtQuick.Controls 2.2
|
||||||
|
import QtQuick.Layouts 1.2
|
||||||
|
|
||||||
import SystemProperties 1.0
|
import SystemProperties 1.0
|
||||||
|
|
||||||
@ -11,7 +12,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"
|
||||||
|
|
||||||
Row {
|
RowLayout {
|
||||||
spacing: 10
|
spacing: 10
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
@ -33,7 +34,9 @@ NavigableDialog {
|
|||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
focus: true
|
focus: true
|
||||||
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
// Cap the width so the dialog doesn't grow horizontally forever. This
|
||||||
|
// will cause word wrap to kick in.
|
||||||
|
Layout.maximumWidth: 400
|
||||||
|
|
||||||
Keys.onReturnPressed: {
|
Keys.onReturnPressed: {
|
||||||
accept()
|
accept()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user