aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Console API: Print JS objectAurindam Jana2012-08-283-17/+30
| | | | | | | | | Calling console.log(), console.debug(), print() etc would only print out "Object" if a JS Object was passed as an argument. This patch calls the toString() on the object. Change-Id: Iadf8b4d1fe81c3e2c7bd65e3c153a930fd994bef Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Add doc/qtqml and doc/qtquick to .gitignoreYuchen Deng2012-08-281-0/+2
| | | | | Change-Id: I17fa26d5d1481318656b45776f38c3699e873718 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Fix property overriding lookup to exclude functionsv5.0.0-beta1Matthew Vogt2012-08-281-8/+28
| | | | | | | | Function overriding is required by QmlTest, and is likely to be used by other existing QML users. Change-Id: I04086a933456145bda5cede74aba753799feb555 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Reduce memory usage of QV4Bindings::Subscription by 8 bytes.Thomas McGuire2012-08-282-18/+50
| | | | | | | | | | There is no need to store the method, as it can be calculated via pointer arithmetic. That leaves the active flag, which now is the last bit of the bindings pointer. Change-Id: I17b443e63be2d950aa80ad15cc76372b415c3dd6 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Docs - add missing images and code, clean up sectionsBea Lam2012-08-2830-262/+185
| | | | | | | | | | 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>
* Document the current behavior of overridden propertiesMatthew Vogt2012-08-281-0/+50
| | | | | Change-Id: I0d9cf0285824e05b846ffeca2d26fe573f93ccf4 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Doc: Clarify ownership semantics of objects returned by property gettersThomas McGuire2012-08-281-2/+4
| | | | | Change-Id: I8d19756e95ff02ed67b39ba4741aff4fda5896ce Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Fix various doc errorsBea Lam2012-08-2814-44/+66
| | | | | | | | Also restore the main module "reference documentation" links added in 0e0f46c01cf6a183996d36c31987ca4a46b50bd9 Change-Id: I421f5a17e2946a2569537d8ba8a021f219aaf75a Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Add cacheItemCount property to PathViewMartin Jones2012-08-287-61/+216
| | | | | | | | | | | | cacheItemCount specifies the number of items to cache off the path when pathItemCount is specified. This allows up to cacheItemCount items to be kept alive when they move off the path, and also to asynchronously create items off path in preparation for display when the path offset changes. This is the equivalent of cacheBuffer for other views. Task-number: QTBUG-23931 Change-Id: I03497537d3f929e5e3579536850dd43eb2724c38 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Refactor QQmlPropertyCacheMethodArguments creation.Michael Brasser2012-08-282-57/+24
| | | | | Change-Id: Ic7215741b26ddf0a36181cf7c7daaff095e797da Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Fix leak introduced in 0853343c33e394f35c31c161b019b2aed17f9256.Michael Brasser2012-08-282-7/+12
| | | | | Change-Id: I7e23f2ba8e7ecbcfaddce1ac4224434aa5fbe69b Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Refactor singleton type registration codeChris Adams2012-08-2833-591/+524
| | | | | | | | | | | Previously each singleton type was registered as an implicit separate import. This commit changes the code so that these types are treated just like any other type in the registration sense. It also ensures that singleton types are instantiated per-engine. Change-Id: I5c81c4ca5bf65210f7125d74a62a282a21838068 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Update usage of smooth and antialiasing.Michael Brasser2012-08-2873-297/+90
| | | | | | Change-Id: Icc8b28bdd466389ed3f269f076f1bdb6e9abe3f2 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com> Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Improve docs related to visual parent conceptBea Lam2012-08-285-12/+67
| | | | | Change-Id: I73cc63c8a55cf949b94a2fa502cb331fb8adbda3 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Clean up structure of JavaScript related docsBea Lam2012-08-287-116/+136
| | | | | | | | | | | | | | | | The global object and list of javascript functions should be linked to as subsections from the "JavaScript Host Environment" topic page, and all of the subsections should be visible from the module index page. Also move the "restrictions" docs to this topic page as it's more relevant to this section. Also includes some minor doc improvements. Task-number: QTBUG-26380 Change-Id: Iba6e4e510191bf5e4603d6cbb2826ad7bcdbd10c Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Move data ownership docs and improve docsBea Lam2012-08-282-45/+39
| | | | | | | Move data ownership docs to where they can be found more easily. Change-Id: Id5262cee9b082bc472e4b6ccea853c57e66489ac Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Use the new antialiasing property for canvas paintingCharles Yin2012-08-2810-30/+53
| | | | | Change-Id: I76f21d055696978f2f6936006eea038dd73cce6c Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Document QSGTexture.Jason Barron2012-08-271-0/+41
| | | | | | Task-number: QTBUG-23192 Change-Id: I4a91dfaa0aa80d3cdc6c785fcaefdeafe60a2149 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Fix potential memory leak in AnchorChanges.Michael Brasser2012-08-271-1/+42
| | | | | | Task-number: QTBUG-24708 Change-Id: I4e24b3859f3881ebea4780872b7e4f3790e42d54 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Move the Property Modifier Type documentationChris Adams2012-08-276-69/+114
| | | | | | | | | | | Property Modifier Types are just another sort of QML object type, and don't deserve explicit top-level documentation. This commit moves the docs into the object types documentation, and adds documentation to the syntax page about the "<PropertyModifierObject> on <propertyName>" syntax. Change-Id: Ia9b707739b562d2c8b75fa99b88795ba4d415cf7 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Restrict v8 property lookup to the execution contextMatthew Vogt2012-08-2729-519/+841
| | | | | | | | | | | | | When resolving property names, only properties known to the current context of execution should be available. If a property name has been overriden by a component extension, code executing in the context of the base component should resolve the property name to the property available inside the base component or its bases. Task-number: QTBUG-24891 Change-Id: I9687cc28e108226d5a939627a901c8254344b598 Reviewed-by: Michael Brasser <michael.brasser@nokia.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove unreachable code paths from QQuickChangeSet.Andrew den Exter2012-08-271-9/+4
| | | | | | | | In any circumstance these if statements would evaluate to true, a previous branch of the else if block will be taken first. Change-Id: I7f48769ebfbb1cf5105b875a63530d1c37056c11 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix relative import pathAlan Alpert2012-08-271-1/+1
| | | | | Change-Id: I4c63c4c4ca58b630a454e455360080f7e4f4e4cc Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Add docs for "animation on property" syntax and fix topic pageBea Lam2012-08-272-32/+62
| | | | | | | | | | Also the "States and Animations" topic page doesn't need a section for behaviors since these are described on the "Animations and Transitions in Qt Quick" page. Task-number: QTBUG-20324 Change-Id: I46259402b8790df3aba9717f77fafef9f27a8d44 Reviewed-by: Damian Jansen <damian.jansen@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>
* Immediatley delete QV8QObjectResource objects to reduce memory leaksThomas McGuire2012-08-241-2/+6
| | | | | | | | | | This reduces memory leaks when deleting the v8 engine. Otherwise, the memory would only be reclaimed during a full GC run, which might not happen at all. Change-Id: Iac34bad1f2280adc530d3b3d7a074c5d022005a4 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Don't put JavaScript-owned objects on the stack.Thomas McGuire2012-08-243-381/+385
| | | | | | | | | Only the fact that the object wrapper uses deleteLater() instead of delete made this not crash. Change-Id: I034d8c7f24b963be9e031446ffdfa33e6bc266cc Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Document the vTable hack.Thomas McGuire2012-08-241-0/+8
| | | | | | | This was not immediately obvious, so better document this clever trick. Change-Id: I0d4a06396b9a709b29b46726d9a65d53600e3fa2 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Fix warnings in QtQmlMatthew Vogt2012-08-245-11/+14
| | | | | Change-Id: Ibba3b8e878257f7019bdc90a1344462b77f95a21 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix doc linksBea Lam2012-08-243-8/+9
| | | | | Change-Id: Iafbcd39472f3e6f12169ae1a17b4a040dbb9a8a4 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Improvements for coding conventions docsBea Lam2012-08-242-63/+3
| | | | | | | | | | | | Shouldn't advise using "__" for "private" properties since this mightn't be the best solution. This doesn't work with the onXChanged handler syntax. Also grouped and dot property syntax are both valid. We use both throughout our code. Change-Id: Ibd86f20136dc0e7225558e234afb79f566ca1039 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Link to Coding Conventions pageBea Lam2012-08-242-3/+4
| | | | | Change-Id: I4c2870bf37ea1f9f110ced4120d4a622096d8dfe Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Fix assert when a VisualDataModels context has been invalidated.Andrew den Exter2012-08-242-2/+39
| | | | | | | | | | | Verify the context is valid before attempting to access its engine. The context should normally be valid but there is a small window between a delegate item being released and the DeferredDelete event being processed when it is not. Task-number: QTBUG-26949 Change-Id: I79f3affaed8904cbe0974476010b68305666cd29 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Avoid dynamic lookup of signal handler argumentsMichael Brasser2012-08-2425-313/+621
| | | | | | | | | | | Rewrite signal handlers to include the parameters in the rewrite. Also check whether parameters are actually used when possible, and if not don't provide them to the expression. Change-Id: I7d65c05f4639979dd61035cf7478119ef7647c25 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Increase test coverage for V4Matthew Vogt2012-08-2317-25/+554
| | | | | | | | Add test for integer operations, Math functions and exercise some previously uncovered code. Change-Id: Idff3f3672498775ac117ca98bf34b0fe96cbf760 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Doc: Tidied links, titles, and HTML pages.Jerome Pasion2012-08-239-59/+38
| | | | | | | | -used "Qt Quick" and "Qt QML" to refer to the module -qtquick-index.html and qtqml-index.html for the landing pages Change-Id: I1569949f7875ac6008a5b80a169e327f93f330ae Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Fixes a reference in the Animation docs.Alan Alpert2012-08-231-1/+1
| | | | | | | repeat was renamed to loops long ago Change-Id: Iaaabc155aa16e92367dee2082974856769bad90a Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* 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>
* Port away from qWaitForWindowShown.Stephen Kelly2012-08-222-3/+3
| | | | | | | It is deprecated. Change-Id: Icf29b1f5ab6cb06ee7fd375fb96242df7ee3083e Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Make connectNotify() work with QMLThomas McGuire2012-08-2214-45/+505
| | | | | | | | | Call connectNotify() and disconnectNotify() in QQmlNotifierEndPoint, which works for QML signal handlers and for QML bindings. Task-number: QTBUG-11284 Change-Id: Ic9a08ee6687e5c7e606f315c8fb30eec1493cd83 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Trim trailing whitespace.Stephen Kelly2012-08-228-107/+107
| | | | | Change-Id: I3d268d3ce8d73c7287f51abe9a28c165cb75acb9 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Fix signal offset in dynamic sig param lookupChris Adams2012-08-221-3/+2
| | | | | | | Related to 4317c442fd492121e2fc037a39b40653bbc34294 Change-Id: I6aa505b9dc13813d4996c0b5761e9c3e5eea0292 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Export QV8ValueTypeWrapper.Aaron McCarthy2012-08-221-1/+2
| | | | | | | This is required to implement value types in other modules. Change-Id: I0d59abb321b046efbaa73a5dcd24b72ee343fba7 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Fix snippets to compile to ensure they are validBea Lam2012-08-2221-851/+20
| | | | | | | | | Also deletes snippets that are no longer used by docs. Task-number: QTBUG-26637 Change-Id: I63e129f3169ae78aeb7ac840b6f5b5925dbd06b4 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>
* 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>
* Fix V4 calculations that vary from V8 resultsMatthew Vogt2012-08-225-35/+136
| | | | | | Task-number: QTBUG-24706 Change-Id: I4475a772c5cd92776f2cb73dab9bc06ae4c019fa Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix compilation on Linux with gcc-4.6Sean Harmer2012-08-211-7/+10
| | | | | | | | | Also make use of the seed. Change-Id: I03bd961489d95504bf973c02d51979904fbd9b1c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.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>