Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Roger Zanoni <roger.zanoni@openbossa.org>
- Loading branch information
Roger Zanoni
committed
May 15, 2012
1 parent
ac75cf8
commit 5856b7c
Showing
4 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,63 @@ | |||
/** | |||
* Copyright (C) 2012 by INdT | |||
* | |||
* This program is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public License | |||
* as published by the Free Software Foundation; either version 2 | |||
* of the License, or (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU Lesser General Public License | |||
* along with this program; if not, write to the Free Software | |||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |||
* | |||
* @author Rodrigo Goncalves de Oliveira <rodrigo.goncalves@openbossa.org> | |||
* @author Roger Felipe Zanoni da Silva <roger.zanoni@openbossa.org> | |||
*/ | |||
|
|||
QuasiGame { | |||
id: game | |||
|
|||
width: 400 | |||
height: 250 | |||
|
|||
currentScene: scene | |||
|
|||
QuasiScene { | |||
id: scene | |||
|
|||
width: parent.width | |||
height: parent.height | |||
|
|||
entities: [ | |||
QuasiEntity { | |||
id: rect | |||
width: 300 | |||
height: 300 | |||
|
|||
QuasiLines { | |||
width: 200 | |||
height: 200 | |||
|
|||
points: [[0, 190], [190, 190], [190, 190], [160, 10], [160, 10], [50, 60]] | |||
|
|||
fill: QuasiColorFill { | |||
|
|||
penColor: "blue" | |||
penWidth: 5 | |||
} | |||
} | |||
} | |||
] | |||
|
|||
MouseArea { | |||
anchors.fill: rect | |||
|
|||
drag.target: rect | |||
} | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
include(../examples.pri) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
<!DOCTYPE RCC><RCC version="1.0"> | |||
<qresource> | |||
<file>GameWindow.qml</file> | |||
</qresource> | |||
</RCC> |