mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 00:38:41 +02:00
[ui] dispatch thumbnail creation signal from grid
This commit is contained in:
parent
60c8e779d5
commit
af2c9c0fd3
2 changed files with 19 additions and 10 deletions
|
@ -31,17 +31,13 @@ Item {
|
|||
property var metadata: metadataStr ? JSON.parse(viewpoint.get("metadata").value) : {}
|
||||
}
|
||||
|
||||
onSourceChanged: {
|
||||
thumbnail.source = ThumbnailCache.thumbnail(root.source)
|
||||
// update thumbnail location
|
||||
// can be called from the GridView when a new thumbnail has been written on disk
|
||||
function updateThumbnail() {
|
||||
thumbnail.source = ThumbnailCache.thumbnail(root.source);
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: ThumbnailCache
|
||||
function onThumbnailCreated(imgSource) {
|
||||
if (imgSource == root.source) {
|
||||
thumbnail.source = ThumbnailCache.thumbnail(root.source)
|
||||
}
|
||||
}
|
||||
onSourceChanged: {
|
||||
updateThumbnail();
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue