summaryrefslogtreecommitdiffstats
path: root/demos/declarative/snake/content
Commit message (Collapse)AuthorAgeFilesLines
* Uncomment code accidentally removed with ↵Aaron Kennedy2010-07-301-2/+0
| | | | | | | 1937adaab5861ced44813c6a4b0bff1c3750ecd3 QTBUG-3620 (cherry picked from commit 63ac81df760f9b563ced098386cd4bb24439beb3)
* Undefined is undefined, and now qml warns about itmae2010-06-291-3/+3
|
* Move knowledge of QGraphicsObject out of qml engineAaron Kennedy2010-06-161-0/+2
|
* Fix snake demomae2010-06-082-1/+2
| | | | | | | | | Code degeneration lead to three bugs: 1. progress bar worked only the first time 2. restart was broken 3. highscore model was not persistent Reviewed-by: Trust me
* Add license headers for .qml files.Jason McDonald2010-05-215-0/+205
| | | | | | | Examples get the BSD license, while all other .qml files get the LGPL/tech-preview license. Reviewed-by: Trust Me
* Rename Component::errorsString() -> errorString() (and also forBea Lam2010-05-201-2/+2
| | | | QDeclarativeComponent)
* Make component.createObject require a parent argumentAlan Alpert2010-05-051-4/+2
| | | | | | | | | For graphical objects (the common case) a common mistake is to not parent a dynamically created item. Since you almost always want to add a parent, and it's hard for a beginner to diagnose this problem, a parent is now a required argument and dealt with by the createObject function. Task-number: QTBUG-10110
* Remove Component's isReady, isLoading, isError and isNull properties.Bea Lam2010-04-291-4/+4
| | | | | | | The Component status enum covers all of these properties already and removing these also makes the API consistent with Image and Loader. Note this change only affects the QML Component API; the methods are still available for QDeclarativeComponent.
* Replace usage of print() with console.log().Michael Brasser2010-04-231-4/+4
|
* Make the dynamic creation functions on the Qt objectAlan Alpert2010-04-211-2/+2
| | | | | | | | | Also updated examples to still work, and the dynamic example now uses exceptions a little, to demonstrate that it can be done. Exceptions are also now filled out with the QML error data. Task-number: QT-2801 Reviewed-by: Aaron Kennedy
* Replace "import Qt 4.6" with "import Qt 4.7"Michael Brasser2010-04-085-5/+5
|
* Deprecate inline Script {} blocksAaron Kennedy2010-03-221-14/+12
| | | | | | | | Inline blocks/includes have been replaced with an import syntax: import "foo.js" as Foo this gives better separation between QML and code. Imported script blocks also have a mandatory qualifier, which leads to better optimization potential.
* Move particles in their own plugin (Qt.labs.particles)Yann Bodson2010-03-112-0/+2
| | | | Task-number: QT-2846
* Make "on" syntax mandatory for value sources and interceptorsAaron Kennedy2010-03-024-10/+10
| | | | | | | | | | | | | | | | | | | | | Where you would have written x: NumberAnimation {} y: Behavior {} you now must write NumberAnimation on x {} Behavior on y {} This change also makes the parser more strict with respect to multiple assignments to a single property - they're no longer allowed. For example this x: 10 x: 11 is now an error.
* Rename MouseRegion -> MouseAreaMartin Jones2010-02-221-1/+1
|
* Follow naming conventions (pass examples test)Warwick Allison2010-01-1122-0/+830