Set explicitely parent in MaximizeComponent
Currently it uses applicationWindow().overlay which works but is not ideal for multiple reasons: - This as a tendency to breaks unexpectedly - It can't be optimized by the qml compiler So we are trying to move away from these construct everywhere.
This commit is contained in:
@@ -89,7 +89,7 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
onClicked: {
|
||||
let map = Qt.createComponent('org.kde.neochat', 'QrCodeMaximizeComponent').createObject(parent, {
|
||||
let map = Qt.createComponent('org.kde.neochat', 'QrCodeMaximizeComponent').createObject(QQC2.Overlay.overlay, {
|
||||
text: barcode.content,
|
||||
title: root.room ? root.room.displayName : "",
|
||||
subtitle: root.room ? root.room.id : "",
|
||||
|
||||
Reference in New Issue
Block a user