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() {
|
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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue