mirror of https://github.com/KDE/kasts.git
Also update fullscreen image if chapter image in HeaderBar changes
BUG: 470194
This commit is contained in:
parent
02c56522c4
commit
68baa04522
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue