/****************************************************************************
**
-** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
+** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
import QtQuick 2.0
import QtQuick.Particles 2.0
-Item{
+Item {
id: container
width: 360
height: 160
property ParticleSystem system
- Ship{
+ Ship {
id: nully
system: system
}
property Item target: nully
/*
- Component.onCompleted:{
+ Component.onCompleted: {
container.target.shipType = 1
container.target.gunType = 1
}
*/
- Row{
+ Row {
anchors.horizontalCenter: parent.horizontalCenter
height: parent.height
spacing: 8
- Button{
+ Button {
width: 80
height: 80
anchors.verticalCenter: parent.verticalCenter
container.target.shipType = nextVal;
}
}
- Item{
+ Item {
width: 128
height: 128
anchors.verticalCenter: parent.verticalCenter
- Ship{
+ Ship {
hp: 20
anchors.centerIn: parent
shipType: container.target.shipType
system: container.system
}
}
- Button{
+ Button {
width: 80
height: 80
anchors.verticalCenter: parent.verticalCenter