/****************************************************************************
**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/
**
** This file is part of the examples of the Qt Toolkit.
**
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+**
** $QT_END_LICENSE$
**
****************************************************************************/
import "content/launcher.js" as Util
import "content"
-Rectangle{
+Rectangle {
color: "black"
width: 360
height: 600
- Shell{
+ Shell {
z: 1
id: shell
anchors.fill: parent
}
- VisualDataModel{//TODO: Transitions between modes (and a second mode...)
+
+ VisualDataModel {//TODO: Transitions between modes (and a second mode...)
id: vdm
model: [
"../../affectors/attractor.qml",
"../../simple/startstop.qml",
"../../plasmapatrol/plasmapatrol.qml"
]
- delegate: Rectangle{
+ delegate: Rectangle {
color: "white"
width: 96
height: 96
- Image{
+ Image {
width: 72
height: 72
anchors.centerIn: parent
source: Util.iconFromPath(modelData)
}
- Text{
+ Text {
text: Util.nameFromPath(modelData)
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
font.pixelSize: 8
}
- MouseArea{
+ MouseArea {
anchors.fill: parent
onClicked: shell.setDemo(modelData)
}
}
}
- GridView{
+
+ GridView {
anchors.fill: parent
cellWidth: 120
cellHeight: 120