Also update fullscreen image if chapter image in HeaderBar changes

BUG: 470194
This commit is contained in:
Bart De Vries 2023-05-25 15:13:04 +02:00
parent 02c56522c4
commit 68baa04522
1 changed files with 6 additions and 5 deletions

View File

@ -52,11 +52,12 @@ FocusScope {
}
function openFullScreenImage() {
fullScreenImageLoader.setSource("qrc:/FullScreenImage.qml", {
"image": headerMetaData.image,
"description": headerMetaData.title,
"loader": fullScreenImageLoader
});
var options = {
"image": Qt.binding(function() { return headerMetaData.image }),
"description": Qt.binding(function() { return headerMetaData.title }),
"loader": Qt.binding(function() { return fullScreenImageLoader})
};
fullScreenImageLoader.setSource("qrc:/FullScreenImage.qml", options);
fullScreenImageLoader.active = true;
fullScreenImageLoader.item.open();
}