Fix QML Connections-using code for Qt 5.12

This commit is contained in:
miruka
2020-09-16 08:21:51 -04:00
parent 82fc447a73
commit 60a57db33e
14 changed files with 22 additions and 34 deletions

View File

@@ -307,8 +307,7 @@ HListView {
Connections {
target: py.eventHandlers
function onDeviceUpdateSignal(forAccount) {
onDeviceUpdateSignal: forAccount => {
if (forAccount === root.userId) root.loadDevices()
}
}

View File

@@ -16,8 +16,7 @@ HColumnLayout {
Connections {
target: pageLoader
function onAboutToRecycle() {
onAboutToRecycle: {
stackView.pop(stackView.initialItem)
filterField.reset()
}
@@ -78,8 +77,7 @@ HColumnLayout {
Connections {
target: pageLoader
function onRecycled() {
onRecycled: {
memberList.model = null
updateModelTimer.restart()
}

View File

@@ -88,18 +88,13 @@ MultiviewPane {
Connections {
target: swipeView
function onCurrentItemChanged() {
onCurrentItemChanged:
roomPane.swipeView.currentItem.keybindFocusItem.forceActiveFocus()
}
}
Connections {
target: pageLoader
function onAboutToRecycle() {
roomPane.swipeView.currentIndex = 0
}
onAboutToRecycle: roomPane.swipeView.currentIndex = 0
}
MemberView {}

View File

@@ -82,7 +82,7 @@ HFlickableColumnPage {
Connections {
target: pageLoader
function onAboutToRecycle() { cancel() }
onAboutToRecycle: cancel()
}
HRoomAvatar {