Fix Connections deprecation warning on Qt 5.15
Adopt the correct behavior to get rid of "QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }"
This commit is contained in:
parent
ae37e13c6e
commit
ad36fc72f4
|
@ -50,7 +50,8 @@ HButton {
|
||||||
Connections {
|
Connections {
|
||||||
enabled: contextMenuLoader.status === Loader.Ready
|
enabled: contextMenuLoader.status === Loader.Ready
|
||||||
target: contextMenuLoader.item
|
target: contextMenuLoader.item
|
||||||
onClosed: contextMenuLoader.active = false
|
|
||||||
|
function onClosed() { contextMenuLoader.active = false }
|
||||||
}
|
}
|
||||||
|
|
||||||
HLoader {
|
HLoader {
|
||||||
|
|
|
@ -42,7 +42,8 @@ Video {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: mainUI.fullScreenPopup
|
target: mainUI.fullScreenPopup
|
||||||
onClosed: fullScreen = false
|
|
||||||
|
function onClosed() { fullScreen = false }
|
||||||
}
|
}
|
||||||
|
|
||||||
TapHandler {
|
TapHandler {
|
||||||
|
|
|
@ -199,8 +199,10 @@ HListView {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: pageLoader
|
target: pageLoader
|
||||||
onPreviousShown:
|
|
||||||
|
function onPreviousShown(componentUrl, properties) {
|
||||||
if (setCorrectCurrentItem() === false) startCorrectItemSearch()
|
if (setCorrectCurrentItem() === false) startCorrectItemSearch()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
|
|
|
@ -71,8 +71,9 @@ MultiviewPane {
|
||||||
Connections {
|
Connections {
|
||||||
target: swipeView
|
target: swipeView
|
||||||
|
|
||||||
onCurrentItemChanged:
|
function onCurrentItemChanged() {
|
||||||
swipeView.currentItem.keybindFocusItem.forceActiveFocus()
|
swipeView.currentItem.keybindFocusItem.forceActiveFocus()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MemberView {}
|
MemberView {}
|
||||||
|
|
|
@ -171,10 +171,15 @@ HRowLayout {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: eventList
|
target: eventList
|
||||||
onCheckedChanged: contentLabel.deselect()
|
|
||||||
onDelegateWithSelectedTextChanged:
|
function onCheckedChanged() {
|
||||||
|
contentLabel.deselect()
|
||||||
|
}
|
||||||
|
|
||||||
|
function onDelegateWithSelectedTextChanged() {
|
||||||
if (eventList.delegateWithSelectedText !== model.id)
|
if (eventList.delegateWithSelectedText !== model.id)
|
||||||
contentLabel.deselect()
|
contentLabel.deselect()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
HoverHandler { id: contentHover }
|
HoverHandler { id: contentHover }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user