|
|
@ -19,6 +19,14 @@ Rectangle { |
|
|
|
property bool collapsed: width < collapsePoint |
|
|
|
property bool collapsed: width < collapsePoint |
|
|
|
color: Nheko.colors.window |
|
|
|
color: Nheko.colors.window |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Platform.MessageDialog { |
|
|
|
|
|
|
|
id: needsRestartDlg |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
buttons: Platform.MessageDialog.Ok |
|
|
|
|
|
|
|
text: qsTr("This setting will take effect the next time Nheko is started") |
|
|
|
|
|
|
|
title: qsTr("Restart required") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ScrollView { |
|
|
|
ScrollView { |
|
|
|
id: scroll |
|
|
|
id: scroll |
|
|
|
|
|
|
|
|
|
|
@ -48,6 +56,7 @@ Rectangle { |
|
|
|
rows: collapsed? 2: 1 |
|
|
|
rows: collapsed? 2: 1 |
|
|
|
required property var model |
|
|
|
required property var model |
|
|
|
id: r |
|
|
|
id: r |
|
|
|
|
|
|
|
// onModelChanged: if (model.needsRestart) restartWarning.visible = true; |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
Label { |
|
|
|
Layout.alignment: Qt.AlignLeft |
|
|
|
Layout.alignment: Qt.AlignLeft |
|
|
@ -72,6 +81,25 @@ Rectangle { |
|
|
|
wrapMode: Text.Wrap |
|
|
|
wrapMode: Text.Wrap |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Label { |
|
|
|
|
|
|
|
// id: restartWarning |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Layout.alignment: Qt.AlignLeft |
|
|
|
|
|
|
|
// visible: false//model.needsRestart |
|
|
|
|
|
|
|
// color: Nheko.theme.red |
|
|
|
|
|
|
|
// text: qsTr("Restart required") |
|
|
|
|
|
|
|
// font.italic: true |
|
|
|
|
|
|
|
// ToolTip.text: qsTr("This setting will take effect the next time Nheko is started") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//// Connections { |
|
|
|
|
|
|
|
//// enabled: model.needsRestart |
|
|
|
|
|
|
|
//// target: r |
|
|
|
|
|
|
|
//// function onModelChanged() { |
|
|
|
|
|
|
|
//// restartWarning.visible = true; |
|
|
|
|
|
|
|
//// } |
|
|
|
|
|
|
|
//// } |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
DelegateChooser { |
|
|
|
DelegateChooser { |
|
|
|
id: chooser |
|
|
|
id: chooser |
|
|
|
|
|
|
|
|
|
|
|