on xenial help sign in
Optimize ZoomableImage preview widget by not requesting bigger images when the zoomable property is false
commitfc755c764fe81693ef7604e0099a3de729e3f1d5 authorAndrea Cimitan <andrea.cimitan@gmail.com> dateFri 22 Jan 2016, 17:16 (11 years ago) parente2e7e7d
1 file changed+1−1
qml/Components/ZoomableImage.qml+1−1
qml/Components/ZoomableImage.qml+1−1
@@ -65,7 +65,7 @@ Item {
6565 anchors.fill: parent
6666 fillMode: Image.PreserveAspectFit
6767
68− readonly property int sourceSizeMultiplier: 3
68+ readonly property int sourceSizeMultiplier: root.zoomable ? 3 : 1
6969
7070 sourceSize.width: root.width * sourceSizeMultiplier <= root.height * sourceSizeMultiplier ? root.width * sourceSizeMultiplier : 0
7171 sourceSize.height: root.height * sourceSizeMultiplier <= root.width * sourceSizeMultiplier ? root.height * sourceSizeMultiplier : 0