diff options
author | aavit <eirik.aavitsland@digia.com> | 2013-03-06 15:00:27 +0100 |
---|---|---|
committer | aavit <eirik.aavitsland@digia.com> | 2013-03-06 15:00:27 +0100 |
commit | 2e6e329dcda94df2976c469ef81f810132ec3f8f (patch) | |
tree | ac5ee5dfddd238e4130a6c1e173284a2d28821bd /basicsuite/About Qt on Android/main.qml |
Added the suite used at Embedded World 2013. See basicsuite/README.
Feel free to add & improve!
Diffstat (limited to 'basicsuite/About Qt on Android/main.qml')
-rw-r--r-- | basicsuite/About Qt on Android/main.qml | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/basicsuite/About Qt on Android/main.qml b/basicsuite/About Qt on Android/main.qml new file mode 100644 index 0000000..c952500 --- /dev/null +++ b/basicsuite/About Qt on Android/main.qml @@ -0,0 +1,74 @@ +import QtQuick 2.0 + +Item { + id: root + + width: 1280 + height: 800 + +// Rectangle { +// anchors.fill: parent +// color: "black" +// } + + Flickable { + id: flick + property real inertia: 0.2 + + property real cellWidth; + property real cellHeight; + + width: parent.width * 2 / 3 + height: parent.height + anchors.horizontalCenter: parent.horizontalCenter + + contentHeight: content.height + + flickableDirection: Flickable.VerticalFlick + + Item { + id: shiftTrickery + + width: content.width + height: content.height + + Column { + id: content; + + y: -flick.contentItem.y + offsetY; + width: flick.width + + property real offsetY: 0; + property real inertia: flick.inertia; + property real t; + NumberAnimation on t { + id: animation; + from: 0; + to: 1; + duration: 1000; + loops: Animation.Infinite + running: Math.abs(content.y) > 0.001 || Math.abs(content.x) > 0.001 + } + + onTChanged: { + offsetY += (flick.contentItem.y - offsetY) * inertia + } + + + spacing: engine.smallFontSize() * 2 + + Item { width: 1; height: engine.smallFontSize() } + AboutBoot2Qt { } + QtFramework { } + QtForAndroid { } + Image { + id: codeLessImage + source: "codeless.png" + anchors.horizontalCenter: parent.horizontalCenter + } + Item { width: 1; height: engine.smallFontSize() } + } + + } + } +} |