summaryrefslogtreecommitdiffstats
path: root/examples/declarative/dynamic/qml
Commit message (Collapse)AuthorAgeFilesLines
* Restructure the examples. They are now organized into variousBea Lam2010-05-165-187/+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-076-84/+100
|\ | | | | | | | | Conflicts: examples/declarative/dynamic/qml/itemCreation.js
| * Clean up example code, add white background behind textBea Lam2010-05-076-84/+100
| |
* | 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
|
* Make the dynamic creation functions on the Qt objectAlan Alpert2010-04-211-1/+1
| | | | | | | | | 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 "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-085-5/+5
|
* 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.
* 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.
* 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-051-1/+1
| | | | SystemPalette.
* enable smooth scaling for dynamic exampleYann Bodson2009-10-301-1/+1
|
* cleanupYann Bodson2009-10-306-0/+168