Fix QML Connections-using code for Qt 5.12
This commit is contained in:
parent
82fc447a73
commit
60a57db33e
|
@ -15,6 +15,8 @@ and this project adheres to
|
|||
- Fix checkboxes in the room settings not having their default values updated
|
||||
after switching room
|
||||
|
||||
- Fix various minor features broken on Qt 5.12 and the AppImage since v0.5.2
|
||||
|
||||
|
||||
## 0.6.3 (2020-09-16)
|
||||
|
||||
|
|
|
@ -42,8 +42,7 @@ Video {
|
|||
|
||||
Connections {
|
||||
target: mainUI.fullScreenPopup
|
||||
|
||||
function onClosed() { fullScreen = false }
|
||||
onClosed: fullScreen = false
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
|
|
|
@ -215,8 +215,7 @@ HListView {
|
|||
|
||||
Connections {
|
||||
target: pageLoader
|
||||
|
||||
function onPreviousShown(componentUrl, properties) {
|
||||
onPreviousShown: (componentUrl, properties) => {
|
||||
if (setCorrectCurrentItem() === false) startCorrectItemSearch()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -145,7 +145,7 @@ HListView {
|
|||
Connections {
|
||||
target: root.textArea
|
||||
|
||||
function onCursorPositionChanged() {
|
||||
onCursorPositionChanged: {
|
||||
if (! root.open) return
|
||||
|
||||
const pos = root.textArea.cursorPosition
|
||||
|
@ -162,7 +162,7 @@ HListView {
|
|||
if (pos < start || pos > end) root.accept()
|
||||
}
|
||||
|
||||
function onTextChanged() {
|
||||
onTextChanged: {
|
||||
let changed = false
|
||||
|
||||
for (const [id, name] of Object.entries(root.usersCompleted)) {
|
||||
|
|
|
@ -136,7 +136,7 @@ Item {
|
|||
|
||||
Connections {
|
||||
target: pageLoader
|
||||
function onRecycled() { roomPane.appearAnimation.restart() }
|
||||
onRecycled: roomPane.appearAnimation.restart()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -248,8 +248,7 @@ HTextArea {
|
|||
|
||||
Connections {
|
||||
target: pageLoader
|
||||
|
||||
function onRecycled() {
|
||||
onRecycled: {
|
||||
area.reset()
|
||||
area.loadState()
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -191,12 +191,8 @@ HRowLayout {
|
|||
|
||||
Connections {
|
||||
target: eventList
|
||||
|
||||
function onCheckedChanged() {
|
||||
contentLabel.deselect()
|
||||
}
|
||||
|
||||
function onDelegateWithSelectedTextChanged() {
|
||||
onCheckedChanged: contentLabel.deselect()
|
||||
onDelegateWithSelectedTextChanged: {
|
||||
if (eventList.delegateWithSelectedText !== model.id)
|
||||
contentLabel.deselect()
|
||||
}
|
||||
|
|
|
@ -576,7 +576,7 @@ Rectangle {
|
|||
|
||||
Connections {
|
||||
target: pageLoader
|
||||
function onRecycled() { eventList.moreToLoad = true }
|
||||
onRecycled: eventList.moreToLoad = true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -81,10 +81,8 @@ HColumnPopup {
|
|||
|
||||
Connections {
|
||||
target: Clipboard
|
||||
|
||||
function onContentChanged() {
|
||||
onContentChanged:
|
||||
Clipboard.hasImage ? image.updateCounter += 1 : popup.close()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,10 +40,13 @@ void loggingHandler(
|
|||
Q_UNUSED(context)
|
||||
|
||||
// Hide dumb warnings about thing we can't fix without breaking
|
||||
// compatibilty with Qt < 5.14
|
||||
// compatibilty with Qt < 5.14/5.15
|
||||
if (msg.contains("QML Binding: Not restoring previous value because"))
|
||||
return;
|
||||
|
||||
if (msg.contains("QML Connections: Implicitly defined onFoo properties"))
|
||||
return;
|
||||
|
||||
// Hide layout-related spam introduced in Qt 5.14
|
||||
if (msg.contains("Qt Quick Layouts: Detected recursive rearrange."))
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user