aboutsummaryrefslogtreecommitdiffstats
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Remove the usage of deprecated qdoc macros.Casper van Donderen2012-03-1352-894/+894
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | QDoc now has support for Doxygen style commands for italics, bold and list items. This change applies that change in QDoc to the actual documentation. Task-number: QTBUG-24578 Change-Id: I62d203f21df63a95ee236e578b10418fd9680707 Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
* | | Update text examples to new guidelinesAlan Alpert2012-03-091-10/+0
| |/ |/| | | | | | | Change-Id: I6bbf414f3734bc2f29a7182746c5df158a5924da Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* | Make sure QML type "real" always maps to C++ type "double"Kent Hansen2012-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The type "real" was documented to be a single-precision float, but that's incorrect. It's always been double. However, signal parameters of type "real" would be mapped to the C++ type "qreal", which can be either float or double depending on the platform. Since JavaScript floating point numbers have double precision, QML should use the same, to avoid potential loss of precision. With this change, "real" behaves the same as the QML "double" type (which already guaranteed double precision). Even though it's redundant, "double" is kept to preserve compatibility. Added tests for the "double" type to the QML meta-object autotest, and a test for the "real" type that ensures there's no loss of precision. Change-Id: I1a77f1fd45082ff670684a935e17d1a46ea75d84 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* | Remove incorrect line from performance docsChris Adams2012-03-061-1/+0
|/ | | | | | | | | V8 does not use a single map-transition-graph for all types, and thus the line about ordering of properties in constructor functions is incorrect. Change-Id: Iaf4ac02dcfc53dd7254af1a40a3c66852a78a320 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Merge master <-> api_changesMatthew Vogt2012-03-0512-60/+43
|\ | | | | | | Change-Id: Iad2f07b989b25349fd2d4fff010e24dcd5a1688f
| * More documentation about importing LocalStorage module from JavascriptCharles Yin2012-03-051-1/+16
| | | | | | | | | | | | Task-number:QTBUG-24478 Change-Id: Iad0fe15e8b2f1fcfa82b1654c3fd606d08563457 Reviewed-by: Martin Jones <martin.jones@nokia.com>
| * Improved transitions for Row, Column, Grid, FlowBea Lam2012-03-021-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | The view transitions functionality for ListView and GridView has been integrated into the positioner elements. Not all of this functionality is available for positioners, though, since they don't have models (and thus cannot identify certain model operations) and they don't manage the lifetime of their children. Task-number: QTBUG-24336 Change-Id: I71588de289555d2ef5a763af11358bc0af7b31a7 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
| * Update ImageElement examplesAlan Alpert2012-03-011-10/+0
| | | | | | | | | | | | | | | | | | Now more consistently formed. Required a UI redesign for border image, you now view one at a time, with a selector control. Change-Id: Idf64119b644c1a79779ea0a46412247d6d013cb1 Reviewed-by: Alan Alpert <alan.alpert@nokia.com> Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
| * Add generic "displaced" transition propertyBea Lam2012-02-297-20/+20
| | | | | | | | | | | | | | | | This is the default displaced transition that will be applied if addDisplaced, removeDisplaced or moveDisplaced are not specified (or are disabled). Change-Id: I9356036dc93bd9cb26e64e0b1769228113b74273 Reviewed-by: Martin Jones <martin.jones@nokia.com>
| * Start of examples refactorAlan Alpert2012-02-243-27/+2
| | | | | | | | | | | | | | | | | | | | | | | | This is the general reorg of the examples directory structure, plus additional guidelines. calculator, animations and accessibility have been updated to the new standards and tested, as an example. Task-number: QTBUG-24133 Change-Id: I76c3b86751d3195ba2a5474ff23afb875765e9a4 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* | Rename QDeclarative symbols to QQuick and QQmlMatthew Vogt2012-02-24252-533/+533
|/ | | | | | | | | | | | | Symbols beginning with QDeclarative are already exported by the quick1 module. Users can apply the bin/rename-qtdeclarative-symbols.sh script to modify client code using the previous names of the renamed symbols. Task-number: QTBUG-23737 Change-Id: Ifaa482663767634931e8711a8e9bf6e404859e66 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Positioners cleanupAlan Alpert2012-02-221-1/+2
| | | | | | | | Use qreal for positions and spacing instead of ints, and make the positionedItems list take care of filtering out invisible items. Change-Id: Icad93ad89c848e40a70bd7a9539bd810e27020df Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Doc improvements for positionersBea Lam2012-02-223-0/+59
| | | | | | | | | | | - Fix docs that say opacity changes can trigger an add transition since this is no longer the case - Be more clear about when the move transition is applied - Be more clear about which anchors are allowed/disallowed in which positioners - Add example to Positioner attached property Change-Id: I78417ac5b8eba1af5587955121b7fd4e2ca21169 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Built-in transition support for ListView & GridViewBea Lam2012-02-1615-1/+586
| | | | | | | | | | | | | | | | | ListView and GridView can now be assigned transitions to be run when: - Populating the view (when initially setting the model / resetting) - Adding items - Removing items - Moving items The ViewTransition attached object can be used from within a transition declaration to access various information about the items that are being transitioned. Task-number: QTBUG-21504 Change-Id: Ie5c75ea511c8b15acc3f06fccf19abe34d3677f9 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix warnings in sequence wrapper codeChris Adams2012-02-151-1/+3
| | | | | | | | | | | | | | | Previously, the sequence wrapper had unsigned int / signed int comparisons (due to Qt container classes only allowing signed int indexes (where negative indexes are invalid). This commit ensures that unsigned indexes are bounds checked appropriately, and also fixes a warning due to QString construction from QByteArray. Finally, it updates the documentation for sequences to clarify the indexing semantics. Change-Id: I4c6e133bef6e980a9ccb62ff15a70a5d41537ee3 Reviewed-by: Martin Jones <martin.jones@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Doc: Overhaul of doc/src/declarative and QtQuick2 docs.Jerome Pasion2012-02-1473-3617/+5529
| | | | | | | | | | | | | | | | | | | | | | | | | | | -Consolidated model/view documentation into one. -Added a new navigation for all overviews (grouped the pages) -New front page that shows the grouping -Separated the Qt C++ from the main QML overviews -Consolidated Qt C++ into the "declarative runtime" section -New articles about JavaScript, the engine, and plugins -Fixed the older examples. New snippet comments -Renamed some of the articles -kept the qtquick2 qmlmodule -"Qt Quick Elements" Moved contents of doc/src/declarative into respective module dirs. -Qt Quick 2, LocalStorage, Particles, and QML are now separate. -Removed unused or duplicate documentation. -edited C++ examples -removed navigation and "\inqmlmodule QtQuick 2" for those pages that are not in Qt Quick 2 -fixed doc/src/ licenses to header.FDL from qtbase Change-Id: Ib36f9c07565d91160fa8d04f9670c438f684b82a Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
* Preserve aspect ratio when setting Image.sourceSizeMartin Jones2012-02-141-0/+1
| | | | | | | | | | | Setting both sourceSize.width and sourceSize.height results in changing the image aspect ratio. This is never what you'd want. Fit the image to the provided sourceSize, maintaining the aspect ratio. Task-number: QTBUG-21161 Change-Id: I77e9aacb8d31475d5df0aef1de52c0edbd1e2fc9 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Add new animation elements to element list.Michael Brasser2012-02-141-0/+7
| | | | | Change-Id: I714555e1255c0190619f313fc26f532f3b6f4c38 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Doc: Adding images from Qt 5 bundle to doc/src/images.Jerome Pasion2012-02-1358-0/+0
| | | | | | | | | The declarative images should be in doc/src/image and not in the bundle. qdoc3 reports errors because it cannot find the images. Change-Id: Ie770cf8d0462e0e23cde33d6867dbfe30ae679f1 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Use QInputMethod instead of deprecated QInputPanelPekka Vuorela2012-02-101-1/+1
| | | | | | | | | | Similarly deprecate Qt.application.inputPanel and introduce replacement Qt.inputMethod. Change-Id: Ie4fd467f93f75023c86b0a2d038d858fe5001146 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Sami Kananoja <sami.kananoja@nokia.com>
* Homogenize examplesAlan Alpert2012-02-069-0/+100
| | | | | | | | Several groups of examples are now organized like the other Qt examples, with a project file, doc entry, and single launch point. Change-Id: I2fd957c00e0d1121ebe47c806e54e6999425d1d3 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove QtQuick1 elements from qtdeclarativeMatthew Vogt2012-02-03327-25678/+4
| | | | | | | | QtQuick1 is now contained in a separate repository. Task-number: QTBUG-23737 Change-Id: I09eae67af5693a22b896b916f816f73ccc3a89b1 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix outdated license headers.Jason McDonald2012-02-011-1/+1
| | | | | Change-Id: I8448e0d3dbce0c18f38a1ed9b6e2d75ba83f7088 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Document QRC restriction.Alan Alpert2012-02-011-0/+5
| | | | | | | Task-number: QTBUG-23362 Change-Id: If4793a2224f2fdbe44df346c762cd061f8471b77 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-30491-491/+491
| | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: If39bd256b0fa85eba17ea30f8ab87ea27d758908 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Document PathInterpolator.Michael Brasser2012-01-271-0/+74
| | | | | | Change-Id: I8fb625fb6881af8d0928da3d487dcd659dc384f5 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Elaborate on engine changeAlan Alpert2012-01-271-1/+1
| | | | | Change-Id: I962f292878e4a1c8a8502f36e59803956230b90d Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Move sqldatabase into a module API pluginCharles Yin2012-01-252-85/+1
| | | | | Change-Id: Icd0bbfe16804abf1bbadbabddf3a30b5b18df30c Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Allow JS API in modulesMatthew Vogt2012-01-241-1/+38
| | | | | | | | | Allow modules to export verisoned javascript code into specified namespaces. Task-number: QTBUG-20857 Change-Id: Ic968c697ba36cbc4535870ed5eed2fe7f01af11d Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Console API: Add console.exceptionAurindam Jana2012-01-241-0/+5
| | | | | | | | | console.exception writes a message to the console and prints the JavaScript stack trace at the point where it is called. Change-Id: Idd2ff5982826accae0895db44c7ecf6130338cc7 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Console API: Add console.assertAurindam Jana2012-01-241-0/+13
| | | | | | | | | console.assert tests if an expression is true. If it is false, it writes a message to the console and prints the JavaScript stack trace at that point. Change-Id: I5487552cb8a947e1947914166834e0bdedba3354 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Remove Symbian specific code.Xizhi Zhu (Steven)2012-01-244-14/+8
| | | | | Change-Id: Ifbcc92f1d44d46760ac7c5be24a997384fa22266 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Doc fixesAlan Alpert2012-01-242-3/+4
| | | | | Change-Id: Ic7cf1596b060ed1a006907d26cf6720dc8bc134d Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Console API: Add console.countKai Koehne2012-01-241-0/+13
| | | | | | | | console.count can be handy to check how often code snippets are executed. Change-Id: I0eaf17ab893c76e7b8956122aa31e218745e92bf Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Doc fix for QML Global ObjectYann Bodson2012-01-241-2/+2
| | | | | Change-Id: I2b55a2aeaee1012123e671ad4d854f25539231e1 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-23490-490/+490
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I6a730abc0c396fb545a48b2d6938abedac2e3f1c Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Document toys examplesAlan Alpert2012-01-205-0/+71
| | | | | Change-Id: I376c4169ffff19e06b55e578e57101a476500b04 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Doc: Improve Qt.locale docs.Martin Jones2012-01-201-4/+45
| | | | | Change-Id: I3ef5c4a0bedbaa346b001852bba8e9ff9347e9e0 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Doc: fix QML Examples linkMartin Jones2012-01-171-1/+1
| | | | | Change-Id: Id4637a7953f05ee9eac712116f68218a0c8b9ff9 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Update copyright year in Nokia copyright headers.Jason McDonald2012-01-1728-28/+28
| | | | | | | | Update copyright headers from before 2011, and a couple of new ones that were merged after the previous change to copyright headers. Change-Id: Ia76e08e2734afa4ef3f1207dbcda5ff3bc81b366 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Console API: Add console.infoKai Koehne2012-01-161-1/+1
| | | | | | | | Add console.info for the sake of completeness. It's mapped to qDebug(), just like console.log, console.debug, print. Change-Id: Ife1cfbfe810d4e5e9175343778dff734a56f4a80 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Adapt to QInputPanel::inputDirection() APIPekka Vuorela2012-01-122-2/+2
| | | | | | | Information moved from QGuiApplication into QInputPanel. Change-Id: Idd80609f4b67bffae7222a1fa27918724ebf60f6 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-05459-457/+457
| | | | | Change-Id: I0a8d99909cac867dce72da70b1bbcb649989a51b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Document new Path elements.Michael Brasser2012-01-0513-0/+285
| | | | | Change-Id: Ic1e2aa7da63a7d9e12357a609fc52b3913f14f28 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Document qmlRegisterRevision()Martin Jones2012-01-052-9/+47
| | | | | | | Task-number: QTBUG-22688 Change-Id: I8a6610951dc8320d9872e971ac2d1d86508b8faf Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Add accessibility to qmlFrederik Gladhorn2012-01-022-0/+6
| | | | | | | | | | | | | | | This consists of two parts: An attached property for QML items and a plugin for the accessibility framework. The attached property simply takes care of some properties (name, role) that are needed in order to expose semantics of the application to assistive tools. The plugin exposes the hierarchy of QML items to the accessibility framework. Change-Id: I32f5603d0d9549b01b3645b205b710b9801762f7 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Add wrapMode and verticalAlignment properties to TextInput.Andrew den Exter2011-12-201-0/+3
| | | | | | | | | | | | Wrap mode provides an alternative to horizontal scrolling when the width of the text exceeds the width of the TextInput. With auto scroll wrapping introdoces an implicit verticalAlignment so support setting it explicitly as well. Task-number: QTBUG-22305 Task-number: QTBUG-16203 Change-Id: I1bd3a5335edb3ac48df3d5ccd8ae7274caa91883 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Update the performance-tips documentationChris Adams2011-12-201-49/+645
| | | | | | | | | | | Improvements to the JavaScript integration in QML means that developers must be aware of some different performance related concerns. This commit also adds some performance tips for other elements and use-cases in QML. Change-Id: Ia72f8c7ab275d3ff879fa195d59ecab102ca1f86 Reviewed-by: Alan Alpert <alan.alpert@nokia.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Console APIs: Update documentation in QDeclarativeAurindam Jana2011-12-161-8/+41
| | | | | | | Change-Id: Ieb3887f128987c009d39071dd20e68f9e4fe6bc7 Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Reviewed-by: Peter Yard <peter.yard@nokia.com> Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
* Make PlainText the default textFormat of a TextEdit.Andrew den Exter2011-12-161-0/+3
| | | | | | | | | | | With AutoText as the default it's easy to assume that a TextEdit accepts plain text or rich text only which can lead to unexpected behaviour when user supplied text is does not have the expected formatting and implicitly changes the text format. Task-number: QTBUG-23109 Change-Id: I08900fb23545672fd0e181058633bafeb826a746 Reviewed-by: Martin Jones <martin.jones@nokia.com>