aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove some incorrect animation docsBea Lam2012-08-231-17/+13
| | | | | | | Task-number: QTBUG-23233 Change-Id: I2f0b65ff4553f49e9248ead33a6a06f2076e9a25 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Document various undocumented attributes of QQuickItemBea Lam2012-08-231-101/+951
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add docs for various properties and methods that are public but weren't documented. Also marked various things that shouldn't be documented as \internal. Newly documented attributes in C++ API include: - x, y, z, implicitWidth/Height, baselineOffset - transformOrigin, rotation, scale - stackBefore(), stackAfter() - mapTo*(), mapFrom*(), mapRectTo*(), mapRectFrom*() - childItems(), childAt() - updatePolish() and polish() - state - opacity, visible, enabled - mouse, hover, wheel, key, touch and grab event handlers - drag and drop event handlers - acceptedMouseButtons(), filtersChildMouseEvents(), acceptHoverEvents(), grabMouse, ungrabMouse() - focus, activeFocus, isFocusScope(), scopedFocusItem() - methodInputEvent(), inputMethodQuery() - Flag enum, setFlags(), flags() - window() Newly documented attributes in QML API include: - smooth, antialiasing - baselineOffset Change-Id: If8596b2a488e6ae37a3eb1f7d6dd0911479e9c0e Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Link to "Deploying QML Applications"Bea Lam2012-08-221-0/+1
| | | | | Change-Id: Ic5403ac972ff71648a8f957baec292a0a207b00c Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Fix compilation on OSX 10.6Sean Harmer2012-08-211-2/+2
| | | | | | | OS X 10.6 does not support the GL_ARB_framebuffer_sRGB extension. Change-Id: Ifea8eaf3ffca6242d908538afeb983131a113c73 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Add internal documentation and comments to QQuickListCompositor.Andrew den Exter2012-08-201-0/+341
| | | | | Change-Id: Idc140a8a83502a9d2d10591d8f3179f130dca53a Reviewed-by: Bea Lam <bea.lam@nokia.com>
* setImplicitWidth/Height should be publicBea Lam2012-08-201-2/+2
| | | | | | | They are used as property setters. Change-Id: Id7461277f19b495cced04e7919f234b0917eca80 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Compile on OpenGL ES2 when using Khronos headersSean Harmer2012-08-162-1/+24
| | | | | | | | | | | | | | This change is needed to allow qtdeclarative to build with change https://codereview.qt-project.org/#change,28334 as OpenGL ES 2 and the EXT_sRGB do not define the symbol GL_FRAMEBUFFER_SRGB. Also use symbols defined by OES extensions where needed. The #defines will be removed in a follow-up commit once 28334 has been merged. Change-Id: I1c4e5297c29ecf723463da7fbfe353628c4c35ef Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Remove redundant QT_NO_ACCESSIBILTY.Frederik Gladhorn2012-08-162-6/+0
| | | | | | | The whole file is already ifdef'ed out. Change-Id: I0456fcb8bd1440787aa5a16ca4c0c0234aea594c Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Move docs closer to the members that they documentBea Lam2012-08-162-717/+694
| | | | | | | | | | This will make it easier to add docs for undocumented members in a later change. Includes some minor doc improvements. Change-Id: I809e1382297af604f7cac3abd4fed4a8e4e55967 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Three scene graph examples with docs.Gunnar Sletta2012-08-134-4/+9
| | | | | | | | 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>
* make use of QT_PRIVATE to specify private Qt dependenciesOswald Buddenhagen2012-08-111-3/+1
| | | | | Change-Id: Ia6bf273ff8ed63e13ea9f5c469b5f8e2702a4ee7 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* follow rename of qt_module_config.prf to qt_module.prfOswald Buddenhagen2012-08-111-1/+1
| | | | | Change-Id: I8a13b3aca195b9e8331478d73cd338ab66d65d1f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Remove remnants of QQmlImageProviderKent Hansen2012-08-091-1/+1
| | | | | | | | QQmlImageProvider was renamed to QQuickImageProvider quite some time ago. Change-Id: I2f737f1e2a543c0abb0f45170499c41de25cf696 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Improve main QtQml and QtQuick doc pagesBea Lam2012-08-093-70/+43
| | | | | | | | | | | Make the content of the two pages more consistent with one another. Also improve the reference documentation sections and fix some links. Also the apireferences.qdoc page is not necessary. Change-Id: I01c5b3757c2ec03b1365e4c9c348e33e06f8315f Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Allow invokable functions of value-type classes to be calledChris Adams2012-08-094-17/+885
| | | | | | | | | | | | Previously, invokable functions of value-type classes were returned as properties. This commit fixes that bug by allowing such functions to be invoked normally. It also improves copy-value type handling. This commit also ensures that QMatrix4x4 value types are constructed with qreal values as this is the storage type used internally. Change-Id: Iab0fe4c522ed53d60154e8a8d46dda925fb9f4de Reviewed-by: Martin Jones <martin.jones@nokia.com>
* canvas-related doc fixesBea Lam2012-08-092-170/+179
| | | | | | | | | | - Fully qualify names in \qml* commands - Remove unnecessary 'void' return types in \qmlmethod commands - Remove unnecessary module and type qualifiers from links - Document Canvas::onImageLoaded() Change-Id: I32d1a7a54c407ae98b60857780f5536c6d52fca2 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Document some undocumented AnimatedSprite functionsBea Lam2012-08-091-0/+27
| | | | | Change-Id: If6ac34a989d5770b1f3e2481a01ee57ad89f7707 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Various small doc fixes and improvementsBea Lam2012-08-096-33/+21
| | | | | | | | | | Adds some missing docs and fixes some incorrect doc references. Also removes AnimatedImage docs that were exactly the same as those in base Image type docs. Change-Id: I1357d3c00e63f1b08683bb78246de93dcc0dac7f Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Fix uses of \inmodule, \inqqmlmodule and \sinceBea Lam2012-08-083-2/+4
| | | | | | | Some classes and QML types were missing these or had the wrong values. Change-Id: Ic6376b8b450301f8ae0549e636f4bc2db4400f2b Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Add more to visual parent docsBea Lam2012-08-081-4/+20
| | | | | Change-Id: I57de0f9f55c3a32da991032f7d8246518d637c15 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Rename "JavaScript" section titleBea Lam2012-08-081-1/+1
| | | | | | | | This was causing every mention of "JavaScript" in the docs to link to this section. Change-Id: Ib6cfd1aa7559305fc08d758a41dbd4176f7501e5 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Add missing VisualDataGroup documentation.Andrew den Exter2012-08-081-8/+88
| | | | | Change-Id: I7d1a948dfcfec5fca87ddc393fdb75f544526e56 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Provide features/use-case docs in QML AppDevGuideAlan Alpert2012-08-0837-125/+1638
| | | | | | | | | | The most common use-cases should have easily-accessible solutions available from the front-page of the QML application developer guide. This commit adds that documentation. Task-number: QTBUG-26428 Change-Id: Id15e76db15fbe3599e9ac5dd98e74ad4e034ece4 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Add type name to singleton (module api) implementations.Glenn Watson2012-08-084-6/+6
| | | | | | | | | | | | | This change renames the previous module api implementation to singleton types. When a singleton type is registered, a type name must be provided that is used when accessing the API from QML. This makes the implementation more consistent with the rest of QML. Task-number: QTBUG-26549 Change-Id: Iab0bb1ccf516bd3ae20aee562a64d22976e0aecd Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Fix uses of various qml doc commandsBea Lam2012-08-087-45/+45
| | | | | | | | | | | | | | Signals documented with \qmlsignal should indicate handler name, i.e. 'onSignal' rather than 'signal'. Methods documented with \qmlmethod do not need to document 'void' return values. Also the name of any documented attribute should be qualified with 'QtQuick2::<qmltype>'. Change-Id: I206dd9e8f39c3b84e029ae9d4101b05d0bfb3478 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Explicitly initialize base class.Andrew den Exter2012-08-071-0/+1
| | | | | | | Fixes warning. Change-Id: I29a694fae4408639ebf7e57993139f39a518e0d4 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Restore QML/C++ extensions tutorial and fix plugin docs and examplesBea Lam2012-08-071-1/+1
| | | | | | | | | | | | | | | | | 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>
* Update porting guide for positioner handling of item opacityBea Lam2012-08-072-23/+42
| | | | | | | | Also moved some items from the release notes that are more appropriate for the porting guide. Change-Id: I0abe4dd5e74ac5505e1210bb330cc55af9e657da Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Minor update for release notesBea Lam2012-08-071-0/+3
| | | | | Change-Id: Ia474f5136fd8e22aad948abf0c3e1ac44290aa41 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* MouseArea doc improvementsBea Lam2012-08-071-24/+59
| | | | | | | | | Add example for propagateComposedEvents, and shorten the description of this property in the main type docs as it's discussed in detail in the property docs. Change-Id: I6bc0acd537184c9dd8b5a22bcbc3fd044e10a2cd Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Rename QQuickShaderEffect culling -> cullModeBea Lam2012-08-071-1/+1
| | | | | | | Is documented as cullMode; I assume it should be named as such Change-Id: I7e98bab5636a011d6548ebd897d2f89b2dcbf89d Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Properly check for ability to use GL_REPEAT with npot texturesSean Harmer2012-08-072-2/+2
| | | | | Change-Id: I8dcc1c3f1d6959eef35a45f920bb37c08100a510 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Fix pasting with the middle button in TextInput and TextEdit.Andrew den Exter2012-08-063-4/+18
| | | | | | | | Neither item accepted the middle button which prevented the mouse events ever reaching them. Change-Id: Ia8f693099df4d6c248976453d554fef96d1d3b33 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add tests for copy and paste using keyboard shortcuts.Andrew den Exter2012-08-061-2/+4
| | | | | | | Fixes TextInput.cut() removing text while read only. Change-Id: I03cd44d381be9d53f71ba168b8be7971ab0bbad7 Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
* doc: expanded Qt Quick internationalization guideGary Aish2012-08-031-41/+226
| | | | | Change-Id: I246fb252f6fca046a84fc689cea4334438d669de Reviewed-by: Geir Vattekar <geir.vattekar@nokia.com>
* Doc: QQuickMouseArea::acceptedButtons() accepts ALL MouseButtonsstockton2012-08-031-10/+10
| | | | | | | | | | | | setAcceptedButtons() can make a MouseArea respond to any/all of the Qt::MouseButtons defined in Qt5. (27 possible buttons, not just Qt::LeftButton | Qt::RightButton | Qt::MiddleButton) Task-number: QTBUG-26735 Change-Id: Ib48e5b02eb64c65050b9020b99d917e472328a30 Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Document that add transitions should not animate item heightBea Lam2012-08-032-4/+8
| | | | | Change-Id: I4941e96e9ea96dfe364b9b95a00372d94695c7a3 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Particle doc fixesBea Lam2012-08-031-1/+1
| | | | | Change-Id: I65e8ecdedde6d0faec8b8d61e320df73100faf2c Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Fix various broken links in documentationBea Lam2012-08-0344-148/+156
| | | | | Change-Id: I9e2dac37d18e3ca62e4a92be25e5c2e60ffeba00 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Refactor and document QQuickChangeSet.Andrew den Exter2012-08-035-251/+396
| | | | | | | | | Store an offset variable for moves so that an insert can be split without the need to also split the corresponding remove, simplifying the logic involved somewhat. Change-Id: I1df19d431a04361a75e107bc4d149cbb80cd791d Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Make QQmlScriptString opaque.Michael Brasser2012-08-033-34/+28
| | | | | | | | Allow for future optimization by encapsulating the raw script data. Change-Id: I1863103e8e6d74ede60593cabb240e16f2ae657e Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Doc: fix typo in qtquick.qdocconfCasper van Donderen2012-08-021-1/+1
| | | | | Change-Id: I0ea367eb4caaf9dd9612150f37f6f1e750dc62cd Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
* Move QtQuick.Window module docsBea Lam2012-08-021-15/+0
| | | | | | | | Doesn't seem to get picked up by qdoc if the module docs reside under quick/. Change-Id: Ie27e85ee422d2259ffcb23d05ceb6fbbe7d22283 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Use \b instead of \boldBea Lam2012-08-022-12/+12
| | | | | Change-Id: Ica77b78b113321f962066f1edabd34bf21d38910 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Add missing types for canvas related propertiesBea Lam2012-08-021-4/+4
| | | | | Change-Id: I208c5889be2768673637882e58f43f43ed1f28d9 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* These docs should use \ingroup not \groupBea Lam2012-08-027-13/+13
| | | | | | | | \group generates a page with a set of links for a group, whereas \ingroup declares that a page belongs to a group. Change-Id: I3922ea0037d20a93a2c061d9f85ee0a9a83a80df Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Visual coordinates documentationAlan Alpert2012-08-022-1/+52
| | | | | | Task-number: QTBUG-26367 Change-Id: I4a782118e96aecfaf7cfa6921afcb6dd1f86d665 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Minor restructuring of application developer resourcesChris Adams2012-08-021-34/+56
| | | | | | | | | | Move the QtQml/QtQuick overviews below the quickstart / usecases sections. Merge the Important Topics and Debugging And Testing sections into a single Advanced Topics section. Modify some of the formatting used to improve the consistency of the page. Change-Id: Iab0b077130a763951a2967e725c2ef8ec2937ae8 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Fix handling of changes to the root index of a VisualDataModel.Andrew den Exter2012-08-024-4/+49
| | | | | | | | | | Store the root index as a QPersistentModelIndex so the index remains valid as the model changes, and in the case the root index is removed from the model invalidate the contents of the VisualDataModel until a new root index or model is set. Change-Id: I1cbc27f2068f99a02ff3d43373905dec7e35e900 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Refactor context2d thread logicCharles Yin2012-07-317-289/+158
| | | | | | | | | | 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>