Commit e03e10c9 authored by Tobias Fella's avatar Tobias Fella
Browse files

Port away from onFoo in connections

parent 9a217d17
Pipeline #98001 failed with stage
in 4 minutes and 6 seconds
......@@ -33,7 +33,7 @@ Labs.MenuBar {
title: i18nc("@action:menu", "Edit")
Connections {
target: parentWindow
onActiveFocusItemChanged: {
function onActiveFocusItemChanged() {
if (parentWindow.activeFocusItem instanceof TextEdit || parentWindow.activeFocusItem instanceof TextInput) {
editMenu.field = parentWindow.activeFocusItem;
}
......
......@@ -118,7 +118,9 @@ Kirigami.OverlayDrawer {
Connections {
target: Config
onShowMenubarChanged: if(!Kirigami.Settings.isMobile && !Kirigami.Settings.hasPlatformMenuBar) menu.visible = !Config.showMenubar
function onShowMenubarChanged() {
if(!Kirigami.Settings.isMobile && !Kirigami.Settings.hasPlatformMenuBar) menu.visible = !Config.showMenubar
}
}
Layout.fillHeight: true
......
......@@ -32,7 +32,7 @@ QQC2.MenuBar {
title: i18nc("@action:menu", "Edit")
Connections {
target: parentWindow
onActiveFocusItemChanged: {
function onActiveFocusItemChanged() {
if (parentWindow.activeFocusItem instanceof TextEdit || parentWindow.activeFocusItem instanceof TextInput) {
editMenu.field = parentWindow.activeFocusItem;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment