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() { function openFullScreenImage() {
fullScreenImageLoader.setSource("qrc:/FullScreenImage.qml", { var options = {
"image": headerMetaData.image, "image": Qt.binding(function() { return headerMetaData.image }),
"description": headerMetaData.title, "description": Qt.binding(function() { return headerMetaData.title }),
"loader": fullScreenImageLoader "loader": Qt.binding(function() { return fullScreenImageLoader})
}); };
fullScreenImageLoader.setSource("qrc:/FullScreenImage.qml", options);
fullScreenImageLoader.active = true; fullScreenImageLoader.active = true;
fullScreenImageLoader.item.open(); fullScreenImageLoader.item.open();
} }