Fix QML Connections-using code for Qt 5.12
This commit is contained in:
@@ -307,8 +307,7 @@ HListView {
|
||||
|
||||
Connections {
|
||||
target: py.eventHandlers
|
||||
|
||||
function onDeviceUpdateSignal(forAccount) {
|
||||
onDeviceUpdateSignal: forAccount => {
|
||||
if (forAccount === root.userId) root.loadDevices()
|
||||
}
|
||||
}
|
||||
|
@@ -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()
|
||||
}
|
||||
|
@@ -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 {}
|
||||
|
@@ -82,7 +82,7 @@ HFlickableColumnPage {
|
||||
|
||||
Connections {
|
||||
target: pageLoader
|
||||
function onAboutToRecycle() { cancel() }
|
||||
onAboutToRecycle: cancel()
|
||||
}
|
||||
|
||||
HRoomAvatar {
|
||||
|
Reference in New Issue
Block a user