aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Fix installation of examples.Christian Kandeler2012-11-2259-94/+218
| | | | | | | | | | Enable examples to be built in the target tree. This entails installing the project files and possibly other missing stuff. Task-number: QTBUG-27977 Change-Id: I159fd8e3ebc7077e1d68e085c4947acc058ce594 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: hjk <qthjk@ovi.com>
* Refactoring samegameFabian Bumberger2012-11-2010-89/+178
| | | | | | | This patch cleans up the example and makes it more customizeable by adding a setting file. Also a bug has been fixed, where the "New game" button could not been clicked. Change-Id: Ia397258721dfcf4900e3ed1e176a257eccfad354 Reviewed-by: Alan Alpert (RIM) <aalpert@rim.com>
* Merge branch 'newdocs'Eskil Abrahamsen Blomfeldt2012-11-2024-3/+207
|\ | | | | | | Change-Id: Idd7a9837e4f6a1358edf9accdcdc3c71822f4c25
| * Doc: Moved all content in the doc directory.Venugopal Shivashankar2012-11-0824-3/+207
| | | | | | | | | | | | | | | | | | - most images to the corresponding examples directory - Fixed a few broken links to the examples and qdoc pages - removed the obsolete and unused images and qdoc pages Change-Id: I18f9551b42ec713b81e3f69694a2bd04b1ebf794 Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
* | Update gettingStartedQml example code to use standard Qt coding stylehjk2012-11-165-86/+80
| | | | | | | | | | Change-Id: I225ea53a4e06e92367feb368dd6deea6f9acf403 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* | Fix StocQt example - need full 4-digit years for yahoo APIShawn Rutledge2012-11-131-2/+2
| | | | | | | | | | Change-Id: Id5f6895c3e4c901af3e4e45ca8a1474c9fdb19d9 Reviewed-by: Alan Alpert (RIM) <aalpert@rim.com>
* | Window example tests Qt.application.supportsMultipleWindowsShawn Rutledge2012-11-101-1/+3
| | | | | | | | | | Change-Id: I7fcdd518e56427316f454ff4e5b298d13b396ac0 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
* | Examples and fixes for QML Window propertiesShawn Rutledge2012-11-092-17/+76
| | | | | | | | | | | | | | | | | | Setting Window.color in QML takes effect immediately. It was only possible to set the property at startup. Examples demonstrate new Window property features. Change-Id: Ic5b43d0d84371f3fe5c42223ccc98e6de27aed10 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
* | Install the Qt Quick 2 examples in the "qtquick" dirThiago Macieira2012-11-0943-87/+87
| | | | | | | | | | | | | | | | Leave the "qtdeclarative" dir for Qt Quick 1, which is where it used to be in Qt 4. Change-Id: I44997771d77617564fc608c1aba95e3ada8f9a69 Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
* | Don't install tst_qmltest to $QTDIR/testsKai Koehne2012-11-091-0/+3
| | | | | | | | | | | | | | | | | | Don't try to install the tst_qmltest by default, since it will install itself to $QTDIR/tests. Task-number: QTBUG-26661 Change-Id: I310f660cc486ffb4358af14ea15db389375ed802 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* | Fixes the examples shared macro.Caroline Chao2012-11-081-1/+1
| | | | | | | | | | | | | | | | | | | | Detection of the platform's name Mac was wrong. Task-number: QTBUG-27894 Change-Id: I3194fac4e78d12682871dec63a905b4c940fb80c Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
* | Examples separated out of Ie808e78a42074e13aa9d3c87723ec9ac8fdbaf4av5.0.0-beta2Shawn Rutledge2012-11-074-14/+149
|/ | | | | Change-Id: Iec54ed5d7c41c6103ddfe07509b905914806d435 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
* Update Nokia references to Digia's.Caroline Chao2012-11-012-2/+2
| | | | | | Change-Id: I3be91d4a6a1116c79ab6aca89d189c88a265d339 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Changed the plugin module nameVenugopal Shivashankar2012-10-2912-23/+56
| | | | | | | | | | The earlier name, com.nokia.TimeExample is irrelevant now. Also updated all instances of documentation where this older module name was referred. Change-Id: Ic252d0e72af23c2d39d5fed55f242e47c1b6bde9 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Make Qt.quit() from inside QML work in the examplesJan Kundrát2012-10-171-0/+2
| | | | | | | | Without this patch, the samegame's quit button does not work. Change-Id: I904832d018d589e90564534ac1eca02e0dbb54fc Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Use the shared boilerplate code in the tweetsearch demoJan Kundrát2012-10-161-24/+2
| | | | | | | | | Without the shared boilerplate code, the demo will not run unless the application is launched from the directory containing the QML files. Also, it improves consistency to use the same code as with the other examples. Change-Id: Ic3bc358c13cdee4310aaaf7daf4c645c4709027e Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Remove interim compatibility measuresAlan Alpert2012-10-161-3/+3
| | | | | | | | Also update some variables in qtdeclarative which failed to update rootItem->contentItem. Change-Id: Id34e29546a22a74a7ae2ad90ee3a8def6fc541d3 Reviewed-by: Alan Alpert <416365416c@gmail.com>
* Fix imageelements example deploymentTopi Reinio2012-10-121-1/+1
| | | | | | | | Some of the .qml files were missing from INSTALLS Task-number: QTBUG-26996 Change-Id: I9508ca3c43f354a16405af68dbca0133117ee2e2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Add missing contents dir to installation of canvas exampleMiikka Heikkinen2012-10-101-1/+1
| | | | | | | Task-number: QTBUG-26995 Change-Id: Ib346c857f9e0bc97bb2e4365abddb6475c7142d4 Reviewed-by: Topi Reiniö <topi.reinio@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Be more verbose about error when using shared.h for examplesOliver Wolff2012-10-041-6/+14
| | | | | | | | Instead of just aborting the program it should at least give a hint about what actually went wrong. Change-Id: I4019b3c026ba1777905f457562bdc77e5c05df4f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Use correct path to qml files when looking for them in examplesOliver Wolff2012-10-041-1/+18
| | | | | | | | | | | | | As executables might end up in different folders on different plaforms when built, examples' shared.h should not rely on having the qml files in the same folder as the executables. On Windows they end up in debug/ release by default, while they are put in foo.app/Contents/MacOs on Mac if app_bundle is set in CONFIG. Change-Id: If0cea4c186920eb4689d5941b6ff5f333d97c574 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
* Examples: Fix calcqlatr.qmlprojectKai Koehne2012-09-281-1/+1
| | | | | Change-Id: I6a88f4f5c774962ad6c022954e0070d2a2eaadbd Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-23548-4257/+4204
| | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: Ie7f5d49ed8235d7a7845ab68f99ad1c220e64d5c Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Examples: Moved example documentation.Jerome Pasion2012-09-2192-720/+3511
| | | | | | | | | -inline \example pages into separate .qdoc files -fixed broken links to paths -moved ui-components under examples/quick Change-Id: I6e009b9213be3e1f4bed51bdbeb76a7a2142c80b Reviewed-by: Martin Smith <martin.smith@digia.com>
* Use the Module Identifier Directive to make the TimeExample correctLaszlo Papp2012-09-181-0/+1
| | | | | | | | | | | | | | | | From the documentation: "Declares the module identifier of the module. The <ModuleIdentifier> is the (dotted URI notation) identifier for the module, which must match the module's install path. The module identifier directive must be the first line of the file. Exactly one module identifier directive may exist in the qmldir file." More information can be found here: Task-number: QTBUG-26551 Change-Id: Ifd2a7e9a2868ac05baed0dbde9638ce85ff5004a Reviewed-by: Matthew Vogt <mattvogt2@gmail.com>
* doc: fix some more typosSergio Ahumada2012-09-101-1/+1
| | | | | Change-Id: I7fa055049b9e5900d597754c6004febb153de12b Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
* doc: fix some typos in .qml filesSergio Ahumada2012-09-075-5/+5
| | | | | Change-Id: Ice5d60b06ec9ab81fbd98fd1679c8834f3018938 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* Docs - add missing images and code, clean up sectionsBea Lam2012-08-281-4/+4
| | | | | | | | | | Includes the removal of concepts/modelviewsdata/localstorage.qdoc since that is a duplicate of the existing Local Storage module docs. Also removes classes from whatsnew.qdoc that are internal. Change-Id: I4170c1797bbec09bb67784b0b2ad67fd990365a8 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Update usage of smooth and antialiasing.Michael Brasser2012-08-2859-253/+65
| | | | | | Change-Id: Icc8b28bdd466389ed3f269f076f1bdb6e9abe3f2 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com> Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Fix relative import pathAlan Alpert2012-08-271-1/+1
| | | | | Change-Id: I4c63c4c4ca58b630a454e455360080f7e4f4e4cc Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Make samegame work againKent Hansen2012-08-242-5/+5
| | | | | | | | | | | | | Fixes regression caused by commit 6ebf215fdaf2d757ab90ae4d46c4b938e978e2dc. The commit did update the autotests to use "Sql.LocalStorage.openDatabaseSync" instead of the old "Sql.openDatabaseSync", but the examples and demos were not updated accordingly. Task-number: QTBUG-26928 Change-Id: Ifcff830e195a05a26ee095e11d4185f6d94eb1aa Reviewed-by: Leonardo Sobral Cunha <leo.cunha@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Remove deprecated openSoftwareInputPanel function calls from the declarative ↵Joona Petrell2012-08-224-4/+4
| | | | | | | examples Change-Id: I458bb1ed08f587b13a52a2615ba4d7966363a12b Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Avoid overriding changed signalAlan Alpert2012-08-161-3/+2
| | | | | | | | This functionality is not officially supported and may break in the future. Change-Id: I35ec69a4fd91cbda2249046eec0b3bfb34805f50 Reviewed-by: Chris Adams <christopher.adams@nokia.com> Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Three scene graph examples with docs.Gunnar Sletta2012-08-1318-21/+970
| | | | | | | | How to make a custom QSGGeometry, how to use QSGSimpleMaterial and how to use render with raw GL. Change-Id: I3e5a32b6ae12d7d781c11050ed26a54845e92cca Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* More consistent examples directory structureAlan Alpert2012-08-10200-246/+52
| | | | | | | | Under examples the next directory level distinguishes imports/modules and the next directory level distinguishes examples. Change-Id: Icabadaac6ccb9c1c424efa9c9e64a7d94bc7c0da Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Uncomment examples in pro fileAlan Alpert2012-08-091-12/+12
| | | | | | | | Examples all seem to build and install fine, and no task number was mentioned in the pro file. Change-Id: Ie836385683287467618749456247684456721866 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Update imports and module documentationChris Adams2012-08-084-3/+4
| | | | | | | | | | | | | | | | | | Recently, the qmldir syntax was modified to allow a module identifier directive to be specified. This allows us to guarantee that types provided in that namespace are not overridden by other modules. Given this fundamental change, the documentation needed to be updated to reflect the new terminology surrounding imports: - modules - identified vs legacy - directories - local and remote directory imports - JavaScript resources - scripts which can be imported directly Change-Id: I5a3d38de93d0186e79b87f2b3050f2b802088348 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Restore QML/C++ extensions tutorial and fix plugin docs and examplesBea Lam2012-08-071-2/+0
| | | | | | | | | | | | | | | | | This restores the "Writing QML Extensions with C++" tutorial that was removed during the recent QML doc restructure. This also updates outdated docs in "Creating C++ Plugins for QML" that referred to the use of Q_EXPORT_PLUGIN2() and such as the process for writing QML plugins in Qt 5 has changed. Note the plugins.json line was removed from examples/qml/cppextensions/plugins/plugins.pro since this json file was removed in a previous commit, as plugins no longer require the empty json file. Change-Id: I795d6faf6a741466a952feb8e15b028ec3d52b69 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Refactor context2d thread logicCharles Yin2012-07-318-161/+0
| | | | | | | | | | 1. Use QQuickContext2DRenderThread for Threaded rendering 2. Make FBO target works with all render strategies 3. Remove some unnessary locks, call texture methods by invoking meta calls 4. Run existing tests with all render targets and strategies (except Cooperative) Change-Id: I0db5c91d848b86bcc1536c30d7a5804b66a817f1 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Empty JSON files are not needed for the plugin systemAlan Alpert2012-07-2510-10/+5
| | | | | Change-Id: I8df57ed1ced8128723d790c30c00ccaba0a2787d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Clean up StocQt demoAlan Alpert2012-07-2422-1/+107
| | | | | | | | Rename, add cpp shell, add doc file, add project files. Task-number: QTBUG-26235 Change-Id: I51c2abefbadbadbadae0abdde5a52f857bcdb68b Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* TweetSearch Stylistic TweaksAlan Alpert2012-07-245-15/+35
| | | | | | | Includes upgrading the bird sprite to stochastic behavior Change-Id: I6357f6a47ded0a18ad0746c3eef590ee9092db52 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Particle example restylingAlan Alpert2012-07-249-640/+604
| | | | | | | | | For self-contained particle systems, placing them inside the ParticleSystem element is encouraged. Change-Id: Iafc5a94bb07c4c0dac0daec300d01e0fde165146 Reviewed-by: Yann Bodson <yann.bodson@nokia.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Cleanup/simplify tweetsearch exampleYann Bodson2012-07-236-75/+69
| | | | | | | | Also make it possible to click on links Change-Id: I51c2abef12662f415ae0abdde5a52f857bcdb68b Reviewed-by: Alan Alpert <alan.alpert@nokia.com> Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Rewrite stockchart demoCharles Yin2012-07-1727-1362/+1112
| | | | | Change-Id: Ie931d116f3ac16245d56b8c1539e5c4f2dc490f0 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* QQuickCanvas renamesAlan Alpert2012-07-172-5/+5
| | | | | | | | | | | | | | | | QQuickCanvas is now called QQuickWindow QQuickCanvas::rootItem is now QQuickWindow::contentItem QQuickItem::canvas is now QQuickItem::window QQuickItem::ItemChangeData::canvas is also renamed window QQuickCanvas::grabFrameBuffer is now QQuickWindow::grabWindow The functions related to the color property have dropped the clear from their names. The first three changes have interim compatibility measures in place to ease the transition. Change-Id: Id34e29546a22a74a7ae2ad90ee3a8def6fc541d2 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add maroon demoAlan Alpert2012-07-1272-1/+2106
| | | | | Change-Id: I880edf78e210d243ef87511e88ea592f6e252da6 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Add new samegame and calculator demosAlan Alpert2012-07-12107-802/+2598
| | | | | Change-Id: I06ac38a1d0f844eba367fc5e163151d1f70a0012 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Update particles examples en masseAlan Alpert2012-06-2939-94/+847
| | | | | Change-Id: I882f59c687d790bc55cf59abf6f0ea80b65b50d9 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Rename speed -> velocity in the particle systemAlan Alpert2012-06-2931-72/+72
| | | | | | | | Matches the convention set in the QtQuick module, for example by ListView and Flickable. Change-Id: I8df57ed1ced8128723d790c30c00cc1b2062787d Reviewed-by: Bea Lam <bea.lam@nokia.com>