Hack to see if kquickimageeditor is also the problem

This commit is contained in:
James Graham
2024-09-12 08:12:31 +01:00
parent 909eec30d2
commit 31d83ac0e3

View File

@@ -38,20 +38,20 @@ ColumnLayout {
text: i18n("Edit")
display: QQC2.AbstractButton.IconOnly
Component {
id: imageEditorPage
ImageEditorPage {
imagePath: root.attachmentPath
}
}
// Component {
// id: imageEditorPage
// ImageEditorPage {
// imagePath: root.attachmentPath
// }
// }
onClicked: {
let imageEditor = applicationWindow().pageStack.pushDialogLayer(imageEditorPage);
imageEditor.newPathChanged.connect(function (newPath) {
applicationWindow().pageStack.layers.pop();
root.attachmentPath = newPath;
});
}
// onClicked: {
// let imageEditor = applicationWindow().pageStack.pushDialogLayer(imageEditorPage);
// imageEditor.newPathChanged.connect(function (newPath) {
// applicationWindow().pageStack.layers.pop();
// root.attachmentPath = newPath;
// });
// }
QQC2.ToolTip.text: text
QQC2.ToolTip.visible: hovered
}