~aacid/unity8/moreAsyncAudioCard

« back to all changes in this revision

Viewing changes to qml/Components/ZoomableImage.qml

  • Committer: Albert Astals Cid
  • Date: 2016-03-10 08:32:16 UTC
  • mfrom: (2136.2.83 unity8)
  • Revision ID: albert.astals@canonical.com-20160310083216-8nnplxl85qx13xd0
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
                    anchors.fill: parent
66
66
                    fillMode: Image.PreserveAspectFit
67
67
 
68
 
                    readonly property int sourceSizeMultiplier: 3
 
68
                    readonly property int sourceSizeMultiplier: root.zoomable ? 3 : 1
69
69
 
70
70
                    sourceSize.width: root.width * sourceSizeMultiplier <= root.height * sourceSizeMultiplier ? root.width * sourceSizeMultiplier : 0
71
71
                    sourceSize.height: root.height * sourceSizeMultiplier <= root.width * sourceSizeMultiplier ? root.height * sourceSizeMultiplier : 0