mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2026-02-08 00:32:27 +00:00
Move showMenuBar toggle inside advanced settings.
This commit is contained in:
@@ -28,7 +28,7 @@ ColumnLayout {
|
|||||||
GroupBox {
|
GroupBox {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
title: qsTr("Command")
|
title: qsTr("Miscellaneous")
|
||||||
padding: appSettings.defaultMargin
|
padding: appSettings.defaultMargin
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
@@ -39,12 +39,6 @@ ColumnLayout {
|
|||||||
checked: appSettings.useCustomCommand
|
checked: appSettings.useCustomCommand
|
||||||
onCheckedChanged: appSettings.useCustomCommand = checked
|
onCheckedChanged: appSettings.useCustomCommand = checked
|
||||||
}
|
}
|
||||||
// Workaround for QTBUG-31627 for pre 5.3.0
|
|
||||||
Binding {
|
|
||||||
target: useCustomCommand
|
|
||||||
property: "checked"
|
|
||||||
value: appSettings.useCustomCommand
|
|
||||||
}
|
|
||||||
TextField {
|
TextField {
|
||||||
id: customCommand
|
id: customCommand
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@@ -59,26 +53,18 @@ ColumnLayout {
|
|||||||
Component.onCompleted: settings_window.closing.connect(
|
Component.onCompleted: settings_window.closing.connect(
|
||||||
saveSetting)
|
saveSetting)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
GroupBox {
|
|
||||||
title: qsTr("Cursor")
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.fillHeight: true
|
|
||||||
padding: appSettings.defaultMargin
|
|
||||||
ColumnLayout {
|
|
||||||
anchors.fill: parent
|
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: blinkingCursor
|
id: blinkingCursor
|
||||||
text: qsTr("Blinking Cursor")
|
text: qsTr("Blinking Cursor")
|
||||||
checked: appSettings.blinkingCursor
|
checked: appSettings.blinkingCursor
|
||||||
onCheckedChanged: appSettings.blinkingCursor = checked
|
onCheckedChanged: appSettings.blinkingCursor = checked
|
||||||
}
|
}
|
||||||
Binding {
|
CheckBox {
|
||||||
target: blinkingCursor
|
id: showMenubar
|
||||||
property: "checked"
|
text: qsTr("Show Menubar")
|
||||||
value: appSettings.blinkingCursor
|
enabled: !appSettings.isMacOS
|
||||||
|
checked: appSettings.showMenubar
|
||||||
|
onCheckedChanged: appSettings.showMenubar = checked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,15 +52,6 @@ QtObject {
|
|||||||
sourceComponent: OSXMenu { }
|
sourceComponent: OSXMenu { }
|
||||||
}
|
}
|
||||||
|
|
||||||
property Action showMenubarAction: Action {
|
|
||||||
text: qsTr("Show Menubar")
|
|
||||||
enabled: !appSettings.isMacOS
|
|
||||||
shortcut: "Ctrl+Shift+M"
|
|
||||||
checkable: true
|
|
||||||
checked: appSettings.showMenubar
|
|
||||||
onTriggered: appSettings.showMenubar = !appSettings.showMenubar
|
|
||||||
}
|
|
||||||
|
|
||||||
property Action fullscreenAction: Action {
|
property Action fullscreenAction: Action {
|
||||||
text: qsTr("Fullscreen")
|
text: qsTr("Fullscreen")
|
||||||
enabled: !appSettings.isMacOS
|
enabled: !appSettings.isMacOS
|
||||||
|
|||||||
@@ -64,10 +64,6 @@ Menu {
|
|||||||
action: fullscreenAction
|
action: fullscreenAction
|
||||||
visible: fullscreenAction.enabled
|
visible: fullscreenAction.enabled
|
||||||
}
|
}
|
||||||
MenuItem {
|
|
||||||
action: showMenubarAction
|
|
||||||
visible: showMenubarAction.enabled
|
|
||||||
}
|
|
||||||
MenuItem {
|
MenuItem {
|
||||||
action: zoomInAction
|
action: zoomInAction
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,10 +56,6 @@ MenuBar {
|
|||||||
action: fullscreenAction
|
action: fullscreenAction
|
||||||
visible: fullscreenAction.enabled
|
visible: fullscreenAction.enabled
|
||||||
}
|
}
|
||||||
MenuItem {
|
|
||||||
action: showMenubarAction
|
|
||||||
visible: showMenubarAction.enabled
|
|
||||||
}
|
|
||||||
MenuItem {
|
MenuItem {
|
||||||
action: zoomInAction
|
action: zoomInAction
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user