summaryrefslogtreecommitdiffstats
path: root/examples/declarative/dynamic
Commit message (Collapse)AuthorAgeFilesLines
* Restructure the examples. They are now organized into variousBea Lam2010-05-1615-380/+0
| | | | | | subdirectories to make it easier to locate examples for certain features (e.g. animation) and to distinguish between different types of examples (e.g. very basic examples vs complex demo-like examples).
* Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/qt-qml into 4.7Alan Alpert2010-05-077-171/+206
|\ | | | | | | | | Conflicts: examples/declarative/dynamic/qml/itemCreation.js
| * Clean up example code, add white background behind textBea Lam2010-05-077-171/+206
| |
* | Make component.createObject require a parent argumentAlan Alpert2010-05-051-2/+1
|/ | | | | | | | | 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-3/+3
| | | | | | | 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-3/+3
|
* Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/qt-qml into 4.7Alan Alpert2010-04-211-0/+16
|\
| * Add .qmlproject files to declarative examples.Yann Bodson2010-04-201-0/+16
| |
* | Make the dynamic creation functions on the Qt objectAlan Alpert2010-04-212-2/+37
|/ | | | | | | | | 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
* Fix code style in examplesBea Lam2010-04-131-1/+1
|
* Replace "property var " with "property variant " in QML codeAaron Kennedy2010-04-091-1/+1
|
* Replace "import Qt 4.6" with "import Qt 4.7"Michael Brasser2010-04-086-7/+7
|
* Deprecate inline Script {} blocksAaron Kennedy2010-03-221-4/+4
| | | | | | | | 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-111-0/+1
| | | | Task-number: QT-2846
* More declarative examples cleanup.Yann Bodson2010-03-051-19/+23
|
* make example work againmae2010-03-031-4/+4
| | | | | The code is now a bit on the imperative side, but that was the only working solution to remove the binding loops.
* Rename MouseRegion -> MouseAreaMartin Jones2010-02-222-2/+2
|
* Fix dynamic exampleAlan Alpert2010-02-191-0/+1
| | | | Dynamic property creation appears to have been restricted.
* Removed "running: true" for animations used as propertyvaluesourceLeonardo Sobral Cunha2010-02-111-1/+1
| | | | | | This attribution is not necessary anymore since 923710196d6d5..., Reviewed-by: Michael Brasser
* Fix perspective in dynamic exampleAlan Alpert2009-11-092-5/+8
| | | | working Z and items can no longer be placed in the sky (due to scaling).
* Use darker() and lighter() functions from global Qt object rather than from ↵Yann Bodson2009-11-052-2/+2
| | | | SystemPalette.
* enable smooth scaling for dynamic exampleYann Bodson2009-10-301-1/+1
|
* cleanupYann Bodson2009-10-307-8/+10
|
* Merge QmlComponentJS into QmlComponentAlan Alpert2009-10-291-1/+1
| | | | | | | createComponent() and Component{} are now the same, and so Component{}s can now be passed around for use in script. Also this commit fixes the minor bug QT-2386
* Incorporate latest optical theory.Warwick Allison2009-10-282-3/+15
|
* Fix dynamic exampleAlan Alpert2009-10-281-2/+0
| | | | | Includes adding a comment to the positioners to alert others that you shouldn't use anchors as well.
* dynamic example now meets minimum aesthetic requirementsAlan Alpert2009-10-282-14/+41
| | | | | Task-number: QT-2270 Reviewed-by: Yann Bodson
* Better dragging of items for dynamic exampleAlan Alpert2009-10-281-5/+5
| | | | | The mouse is no longer at 0,0 of dragged item, but rather at the same point as the original click.
* Dynamic example now has more droppable ItemsAlan Alpert2009-10-2810-51/+91
| | | | | | The example is nearly done, just needs a little more aesthetic transfiguration. Also this commit introduces some generic components that could be easily used to make a game like ktuberling.
* Update dynamic exampleAlan Alpert2009-10-279-128/+188
| | | | | | | The start of a prettier version. Not yet complete, does not full resolve the task. Task-number: QT-2270
* Fix dynamic exampleAlan Alpert2009-10-151-3/+5
| | | | | | Had some accidental global vars Task-number: One of the QT-2270s
* Clean upBea Lam2009-10-082-24/+68
|
* Rename State change elements.Martin Jones2009-08-211-1/+1
| | | | | | SetProperties -> PropertyChanges RunScript -> StateChangeScript SetAnchors -> AnchorChanges
* Renaming Rect -> RectangleYann Bodson2009-08-192-5/+5
|
* Add delay parameter to the destroy function on QML objectsAlan Alpert2009-08-132-2/+10
| | | | | | Also updated dynamic example to have a fadeout effect on deletion. Also slipped in a toStr function, as it didn't work when I called it toString.
* Move all QML types to Qt/4.6 namespace.Warwick Allison2009-07-232-0/+4
| | | | | Adjust examples and demos accordingly. As per QT-558
* Move the Script interface of QmlComponent to QmlBindableComponentAlan Alpert2009-07-211-2/+2
|
* Fix bug in createQmlObjectAlan Alpert2009-07-062-2/+2
| | | | | Wasn't actually loading the object's context properly, with regard to url resolution.
* Improve JS dynamic creationAlan Alpert2009-07-022-7/+10
| | | | | | | | Renamed evalQml to be consistent with us, not javascript. Fixed bug where createComponent never had the right path. createQmlObject (evalQml) now has a parent as a argument. It also still has a bug where that parent doesnt get set properly, although it is used as the creation context also.
* Beautification of dynamic object example.Alan Alpert2009-07-022-25/+43
| | | | | Adds some error handling, and cleans up documentation and the example a little.
* Add dynamic object creation exampleAlan Alpert2009-06-093-0/+68