summaryrefslogtreecommitdiffstats
path: root/examples/positioning/flickr/flickrmobile/GridDelegate.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/positioning/flickr/flickrmobile/GridDelegate.qml')
-rw-r--r--examples/positioning/flickr/flickrmobile/GridDelegate.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/positioning/flickr/flickrmobile/GridDelegate.qml b/examples/positioning/flickr/flickrmobile/GridDelegate.qml
index 4eca4d8b..54f6b0eb 100644
--- a/examples/positioning/flickr/flickrmobile/GridDelegate.qml
+++ b/examples/positioning/flickr/flickrmobile/GridDelegate.qml
@@ -39,6 +39,7 @@
****************************************************************************/
import QtQuick 2.0
+ import QtQuick.Window 2.0
Component {
id: photoDelegate
@@ -78,11 +79,11 @@
states: [
State {
name: "Show"; when: thumb.status == Image.Ready
- PropertyChanges { target: scaleMe; scale: 1 }
+ PropertyChanges { target: scaleMe; scale: Math.round(Screen.pixelDensity / 4) }
},
State {
name: "Details"
- PropertyChanges { target: scaleMe; scale: 1 }
+ PropertyChanges { target: scaleMe; scale: Math.round(Screen.pixelDensity / 4)}
ParentChange { target: wrapper; parent: imageDetails.frontContainer }
PropertyChanges { target: wrapper; x: 20; y: 60; z: 1000 }
PropertyChanges { target: background; state: "DetailedView" }