File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -476,6 +476,7 @@ FocusScope {
476476 property int previousWidth: 0
477477 property int previousHeight: 0
478478 property real targetSize: Math .max (width, height) * imgContainer .scale
479+ property real resizeRatio: imgContainer .scale
479480 onHeightChanged: {
480481 /* Image size is not updated through a single signal with the floatImage viewer, unlike
481482 * the simple QML image viewer: instead of updating straight away the width and height to x and
@@ -519,6 +520,7 @@ FocusScope {
519520 ' idView' : Qt .binding (function () { return ((root .displayedNode && ! root .displayedNode .hasSequenceOutput && _reconstruction) ? _reconstruction .selectedViewId : - 1 ) }),
520521 ' cropFisheye' : false ,
521522 ' sequence' : Qt .binding (function () { return ((root .enableSequencePlayer && (_reconstruction || (root .displayedNode && root .displayedNode .hasSequenceOutput ))) ? getSequence () : []) }),
523+ ' resizeRatio' : Qt .binding (function () { return floatImageViewerLoader .resizeRatio }),
522524 ' targetSize' : Qt .binding (function () { return floatImageViewerLoader .targetSize }),
523525 ' useSequence' : Qt .binding (function () {
524526 return (root .enableSequencePlayer && ! useExternal && (_reconstruction || (root .displayedNode && root .displayedNode .hasSequenceOutput && (displayedAttr .desc .semantic === " imageList" || displayedAttr .desc .semantic === " sequence" ))))
You can’t perform that action at this time.
0 commit comments