profile/ivi/qtdeclarative.git
11 years agoUpdate to 5.0.0-beta1 84/1784/1 1.0 1.0_branch accepted/trunk/20120919.004235 submit/trunk/20120918.231616
Rusty Lynch [Tue, 18 Sep 2012 23:15:52 +0000 (16:15 -0700)]
Update to 5.0.0-beta1

11 years agomove qmlscene from the devel to the main package
Rusty Lynch [Wed, 11 Jul 2012 22:09:14 +0000 (15:09 -0700)]
move qmlscene from the devel to the main package

11 years agoupdating snapshot
Rusty Lynch [Mon, 9 Jul 2012 17:05:48 +0000 (10:05 -0700)]
updating snapshot

11 years agoremove broken changeset
Rusty Lynch [Wed, 13 Jun 2012 05:49:50 +0000 (22:49 -0700)]
remove broken changeset

11 years agoAdd packaging files for Tizen
Rusty Lynch [Wed, 13 Jun 2012 00:45:30 +0000 (17:45 -0700)]
Add packaging files for Tizen

11 years agoFix property overriding lookup to exclude functions
Matthew Vogt [Tue, 28 Aug 2012 05:00:42 +0000 (15:00 +1000)]
Fix property overriding lookup to exclude functions

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>
11 years agoReduce memory usage of QV4Bindings::Subscription by 8 bytes.
Thomas McGuire [Fri, 24 Aug 2012 13:28:46 +0000 (15:28 +0200)]
Reduce memory usage of QV4Bindings::Subscription by 8 bytes.

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>
11 years agoDocs - add missing images and code, clean up sections
Bea Lam [Tue, 28 Aug 2012 01:21:19 +0000 (11:21 +1000)]
Docs - add missing images and code, clean up sections

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>
11 years agoDocument the current behavior of overridden properties
Matthew Vogt [Tue, 28 Aug 2012 01:56:51 +0000 (11:56 +1000)]
Document the current behavior of overridden properties

Change-Id: I0d9cf0285824e05b846ffeca2d26fe573f93ccf4
Reviewed-by: Bea Lam <bea.lam@nokia.com>
11 years agoDoc: Clarify ownership semantics of objects returned by property getters
Thomas McGuire [Tue, 14 Aug 2012 09:08:33 +0000 (11:08 +0200)]
Doc: Clarify ownership semantics of objects returned by property getters

Change-Id: I8d19756e95ff02ed67b39ba4741aff4fda5896ce
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
11 years agoFix various doc errors
Bea Lam [Mon, 27 Aug 2012 07:04:17 +0000 (17:04 +1000)]
Fix various doc errors

Also restore the main module "reference documentation" links
added in 0e0f46c01cf6a183996d36c31987ca4a46b50bd9

Change-Id: I421f5a17e2946a2569537d8ba8a021f219aaf75a
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
11 years agoAdd cacheItemCount property to PathView
Martin Jones [Tue, 21 Aug 2012 04:47:48 +0000 (14:47 +1000)]
Add cacheItemCount property to PathView

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>
11 years agoRefactor QQmlPropertyCacheMethodArguments creation.
Michael Brasser [Tue, 28 Aug 2012 00:49:28 +0000 (10:49 +1000)]
Refactor QQmlPropertyCacheMethodArguments creation.

Change-Id: Ic7215741b26ddf0a36181cf7c7daaff095e797da
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
11 years agoFix leak introduced in 0853343c33e394f35c31c161b019b2aed17f9256.
Michael Brasser [Tue, 28 Aug 2012 00:48:50 +0000 (10:48 +1000)]
Fix leak introduced in 0853343c33e394f35c31c161b019b2aed17f9256.

Change-Id: I7e23f2ba8e7ecbcfaddce1ac4224434aa5fbe69b
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
11 years agoRefactor singleton type registration code
Chris Adams [Tue, 14 Aug 2012 01:44:49 +0000 (11:44 +1000)]
Refactor singleton type registration code

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>
11 years agoUpdate usage of smooth and antialiasing.
Michael Brasser [Wed, 18 Jul 2012 03:53:40 +0000 (13:53 +1000)]
Update usage of smooth and antialiasing.

Change-Id: Icc8b28bdd466389ed3f269f076f1bdb6e9abe3f2
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Reviewed-by: Bea Lam <bea.lam@nokia.com>
11 years agoImprove docs related to visual parent concept
Bea Lam [Mon, 27 Aug 2012 03:13:36 +0000 (13:13 +1000)]
Improve docs related to visual parent concept

Change-Id: I73cc63c8a55cf949b94a2fa502cb331fb8adbda3
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
11 years agoClean up structure of JavaScript related docs
Bea Lam [Fri, 24 Aug 2012 03:00:52 +0000 (13:00 +1000)]
Clean up structure of JavaScript related docs

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>
11 years agoMove data ownership docs and improve docs
Bea Lam [Fri, 24 Aug 2012 01:41:18 +0000 (11:41 +1000)]
Move data ownership docs and improve docs

Move data ownership docs to where they can be found more easily.

Change-Id: Id5262cee9b082bc472e4b6ccea853c57e66489ac
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
11 years agoUse the new antialiasing property for canvas painting
Charles Yin [Mon, 27 Aug 2012 01:36:42 +0000 (11:36 +1000)]
Use the new antialiasing property for canvas painting

Change-Id: I76f21d055696978f2f6936006eea038dd73cce6c
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
11 years agoDocument QSGTexture.
Jason Barron [Tue, 21 Aug 2012 12:04:36 +0000 (14:04 +0200)]
Document QSGTexture.

Task-number: QTBUG-23192
Change-Id: I4a91dfaa0aa80d3cdc6c785fcaefdeafe60a2149
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
11 years agoFix potential memory leak in AnchorChanges.
Michael Brasser [Mon, 27 Aug 2012 01:56:15 +0000 (11:56 +1000)]
Fix potential memory leak in AnchorChanges.

Task-number: QTBUG-24708
Change-Id: I4e24b3859f3881ebea4780872b7e4f3790e42d54
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
11 years agoMove the Property Modifier Type documentation
Chris Adams [Mon, 20 Aug 2012 07:13:48 +0000 (17:13 +1000)]
Move the Property Modifier Type documentation

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>
11 years agoRestrict v8 property lookup to the execution context
Matthew Vogt [Fri, 23 Mar 2012 04:16:43 +0000 (14:16 +1000)]
Restrict v8 property lookup to the execution context

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>
11 years agoRemove unreachable code paths from QQuickChangeSet.
Andrew den Exter [Thu, 9 Aug 2012 00:24:50 +0000 (10:24 +1000)]
Remove unreachable code paths from QQuickChangeSet.

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>
11 years agoFix relative import path
Alan Alpert [Tue, 21 Aug 2012 03:49:48 +0000 (13:49 +1000)]
Fix relative import path

Change-Id: I4c63c4c4ca58b630a454e455360080f7e4f4e4cc
Reviewed-by: Bea Lam <bea.lam@nokia.com>
11 years agoAdd docs for "animation on property" syntax and fix topic page
Bea Lam [Fri, 24 Aug 2012 04:09:36 +0000 (14:09 +1000)]
Add docs for "animation on property" syntax and fix topic page

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>
11 years agoMake samegame work again
Kent Hansen [Fri, 24 Aug 2012 11:31:52 +0000 (13:31 +0200)]
Make samegame work again

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>
11 years agoImmediatley delete QV8QObjectResource objects to reduce memory leaks
Thomas McGuire [Tue, 14 Aug 2012 12:17:10 +0000 (14:17 +0200)]
Immediatley delete QV8QObjectResource objects to reduce memory leaks

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>
11 years agoDon't put JavaScript-owned objects on the stack.
Thomas McGuire [Mon, 13 Aug 2012 13:48:44 +0000 (15:48 +0200)]
Don't put JavaScript-owned objects on the stack.

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>
11 years agoDocument the vTable hack.
Thomas McGuire [Wed, 15 Aug 2012 07:33:18 +0000 (09:33 +0200)]
Document the vTable hack.

This was not immediately obvious, so better document this clever trick.

Change-Id: I0d4a06396b9a709b29b46726d9a65d53600e3fa2
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
11 years agoFix warnings in QtQml
Matthew Vogt [Fri, 24 Aug 2012 00:05:53 +0000 (10:05 +1000)]
Fix warnings in QtQml

Change-Id: Ibba3b8e878257f7019bdc90a1344462b77f95a21
Reviewed-by: Martin Jones <martin.jones@nokia.com>
11 years agoFix doc links
Bea Lam [Fri, 24 Aug 2012 03:12:42 +0000 (13:12 +1000)]
Fix doc links

Change-Id: Iafbcd39472f3e6f12169ae1a17b4a040dbb9a8a4
Reviewed-by: Bea Lam <bea.lam@nokia.com>
11 years agoImprovements for coding conventions docs
Bea Lam [Thu, 23 Aug 2012 04:16:11 +0000 (14:16 +1000)]
Improvements for coding conventions docs

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>
11 years agoLink to Coding Conventions page
Bea Lam [Thu, 23 Aug 2012 04:10:50 +0000 (14:10 +1000)]
Link to Coding Conventions page

Change-Id: I4c2870bf37ea1f9f110ced4120d4a622096d8dfe
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
11 years agoFix assert when a VisualDataModels context has been invalidated.
Andrew den Exter [Thu, 23 Aug 2012 04:20:47 +0000 (14:20 +1000)]
Fix assert when a VisualDataModels context has been invalidated.

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>
11 years agoAvoid dynamic lookup of signal handler arguments
Michael Brasser [Sun, 20 May 2012 23:27:43 +0000 (09:27 +1000)]
Avoid dynamic lookup of signal handler arguments

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>
11 years agoIncrease test coverage for V4
Matthew Vogt [Tue, 21 Aug 2012 02:44:42 +0000 (12:44 +1000)]
Increase test coverage for V4

Add test for integer operations, Math functions and exercise some
previously uncovered code.

Change-Id: Idff3f3672498775ac117ca98bf34b0fe96cbf760
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
11 years agoDoc: Tidied links, titles, and HTML pages.
Jerome Pasion [Mon, 13 Aug 2012 13:16:51 +0000 (15:16 +0200)]
Doc: Tidied links, titles, and HTML pages.

-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>
11 years agoFixes a reference in the Animation docs.
Alan Alpert [Wed, 15 Aug 2012 04:30:31 +0000 (14:30 +1000)]
Fixes a reference in the Animation docs.

repeat was renamed to loops long ago

Change-Id: Iaaabc155aa16e92367dee2082974856769bad90a
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
11 years agoRemove some incorrect animation docs
Bea Lam [Mon, 20 Aug 2012 05:27:07 +0000 (15:27 +1000)]
Remove some incorrect animation docs

Task-number: QTBUG-23233

Change-Id: I2f0b65ff4553f49e9248ead33a6a06f2076e9a25
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
11 years agoDocument various undocumented attributes of QQuickItem
Bea Lam [Fri, 17 Aug 2012 03:05:39 +0000 (13:05 +1000)]
Document various undocumented attributes of QQuickItem

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>
11 years agoPort away from qWaitForWindowShown.
Stephen Kelly [Wed, 22 Aug 2012 09:41:55 +0000 (11:41 +0200)]
Port away from qWaitForWindowShown.

It is deprecated.

Change-Id: Icf29b1f5ab6cb06ee7fd375fb96242df7ee3083e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
11 years agoMake connectNotify() work with QML
Thomas McGuire [Tue, 17 Jul 2012 15:35:53 +0000 (17:35 +0200)]
Make connectNotify() work with QML

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>
11 years agoTrim trailing whitespace.
Stephen Kelly [Tue, 21 Aug 2012 16:19:01 +0000 (18:19 +0200)]
Trim trailing whitespace.

Change-Id: I3d268d3ce8d73c7287f51abe9a28c165cb75acb9
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
11 years agoFix signal offset in dynamic sig param lookup
Chris Adams [Mon, 20 Aug 2012 02:37:42 +0000 (12:37 +1000)]
Fix signal offset in dynamic sig param lookup

Related to 4317c442fd492121e2fc037a39b40653bbc34294

Change-Id: I6aa505b9dc13813d4996c0b5761e9c3e5eea0292
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
11 years agoExport QV8ValueTypeWrapper.
Aaron McCarthy [Wed, 18 Jul 2012 03:13:47 +0000 (13:13 +1000)]
Export QV8ValueTypeWrapper.

This is required to implement value types in other modules.

Change-Id: I0d59abb321b046efbaa73a5dcd24b72ee343fba7
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
11 years agoFix snippets to compile to ensure they are valid
Bea Lam [Mon, 20 Aug 2012 05:01:22 +0000 (15:01 +1000)]
Fix snippets to compile to ensure they are valid

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>
11 years agoLink to "Deploying QML Applications"
Bea Lam [Mon, 20 Aug 2012 03:44:47 +0000 (13:44 +1000)]
Link to "Deploying QML Applications"

Change-Id: Ic5403ac972ff71648a8f957baec292a0a207b00c
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
11 years agoRemove deprecated openSoftwareInputPanel function calls from the declarative examples
Joona Petrell [Tue, 21 Aug 2012 21:09:55 +0000 (00:09 +0300)]
Remove deprecated openSoftwareInputPanel function calls from the declarative examples

Change-Id: I458bb1ed08f587b13a52a2615ba4d7966363a12b
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
11 years agoFix V4 calculations that vary from V8 results
Matthew Vogt [Mon, 20 Aug 2012 06:42:11 +0000 (16:42 +1000)]
Fix V4 calculations that vary from V8 results

Task-number: QTBUG-24706
Change-Id: I4475a772c5cd92776f2cb73dab9bc06ae4c019fa
Reviewed-by: Martin Jones <martin.jones@nokia.com>
11 years agoFix compilation on Linux with gcc-4.6
Sean Harmer [Tue, 21 Aug 2012 09:26:05 +0000 (10:26 +0100)]
Fix compilation on Linux with gcc-4.6

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>
11 years agoFix compilation on OSX 10.6
Sean Harmer [Mon, 20 Aug 2012 20:09:48 +0000 (21:09 +0100)]
Fix compilation on OSX 10.6

OS X 10.6 does not support the GL_ARB_framebuffer_sRGB extension.

Change-Id: Ifea8eaf3ffca6242d908538afeb983131a113c73
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
11 years agoUse object identity to detect cycles in JS-to-C++ type conversion
Kent Hansen [Thu, 16 Aug 2012 12:11:52 +0000 (14:11 +0200)]
Use object identity to detect cycles in JS-to-C++ type conversion

The documentation for v8::Object::GetIdentityHash() states that the
hash value is not guaranteed to be unique (the current implementation
just returns a random number). Hence, the hash value should not be
used to determine whether an object has already been visited during
type conversion; in the worst (and non-deterministic) case, the
conversion will be "cut off" prematurely (due to identical hash
values for two different objects), resulting in data loss.

Instead, represent the visited objects as a set of V8 object handles.
This is safe since the type conversion is always done on the stack,
within a handle scope. Use v8::Object::GetIdentityHash() merely to
implement the qHash() specialization needed for the set.

V8 already provides an operator==() for handles, and it is documented
to return true "if the objects to which they refer are identical",
which is the behavior required by the set implementation.

Task-number: QTBUG-21681
Change-Id: I1f2a1eee8f7c197c02c2ffeaaa1fc0274e8ab740
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
11 years agoGet rid of engine-wide state of visited objects for type conversion
Kent Hansen [Thu, 16 Aug 2012 10:16:38 +0000 (12:16 +0200)]
Get rid of engine-wide state of visited objects for type conversion

Pass the state through to internal conversion functions instead.

Change-Id: Ifab9a9472d7271ee5da103ed915427dfd4f2b15b
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
11 years agoAdd internal documentation and comments to QQuickListCompositor.
Andrew den Exter [Thu, 16 Aug 2012 06:13:56 +0000 (16:13 +1000)]
Add internal documentation and comments to QQuickListCompositor.

Change-Id: Idc140a8a83502a9d2d10591d8f3179f130dca53a
Reviewed-by: Bea Lam <bea.lam@nokia.com>
11 years agosetImplicitWidth/Height should be public
Bea Lam [Fri, 17 Aug 2012 01:28:28 +0000 (11:28 +1000)]
setImplicitWidth/Height should be public

They are used as property setters.

Change-Id: Id7461277f19b495cced04e7919f234b0917eca80
Reviewed-by: Martin Jones <martin.jones@nokia.com>
11 years agoAdd missing QT_{BEGIN,END}_NAMESPACE
Kent Hansen [Thu, 16 Aug 2012 11:48:57 +0000 (13:48 +0200)]
Add missing QT_{BEGIN,END}_NAMESPACE

Change-Id: Id924df99bd000ca5e7ffbef122c0087733f53685
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
11 years agoStabilize QQuickWindow tests a bit
Gunnar Sletta [Fri, 17 Aug 2012 08:00:06 +0000 (10:00 +0200)]
Stabilize QQuickWindow tests a bit

Change-Id: I11a28e203c978e5675b088a5bb999c34b46f80da
Reviewed-by: aavit <qt_aavit@ovi.com>
11 years agoFixing easing curve editor
Thomas Hartmann [Fri, 17 Aug 2012 09:21:43 +0000 (11:21 +0200)]
Fixing easing curve editor

Explicitly close the Qt Quick window.

Change-Id: I9f3ed6155577b6d066ab00c407ce99f31b1263aa
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
11 years agoReduce memory consumption in QV4Bindings::Binding
Matthew Vogt [Fri, 17 Aug 2012 01:10:10 +0000 (11:10 +1000)]
Reduce memory consumption in QV4Bindings::Binding

As with QV8Bindings::Binding, access details from the QML IR
instruction object rather than storing a copy of the values.

Change-Id: I2b629ee1b06ed74c7b38e6d047ef6a98acd45086
Reviewed-by: Martin Jones <martin.jones@nokia.com>
11 years agoCompile on OpenGL ES2 when using Khronos headers
Sean Harmer [Mon, 30 Jul 2012 17:33:42 +0000 (18:33 +0100)]
Compile on OpenGL ES2 when using Khronos headers

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>
11 years agoDocument QJSEngine's lack of exception handling API
Kent Hansen [Wed, 15 Aug 2012 11:02:31 +0000 (13:02 +0200)]
Document QJSEngine's lack of exception handling API

Since we consider throwing non-Error values an edge case, we decided
not to add a an exception handling API (like
QScriptEngine::hasUncaughtException() or v8::TryCatch) yet.
Document this limitation in QJSEngine::evaluate().

Task-number: QTBUG-25857
Change-Id: I7f4869a152f176e613e3e8d2f81efeae198bd560
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
11 years agoRemove redundant QT_NO_ACCESSIBILTY.
Frederik Gladhorn [Tue, 14 Aug 2012 12:24:54 +0000 (14:24 +0200)]
Remove redundant QT_NO_ACCESSIBILTY.

The whole file is already ifdef'ed out.

Change-Id: I0456fcb8bd1440787aa5a16ca4c0c0234aea594c
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
11 years agoFix crash in signal change notification override
Chris Adams [Wed, 25 Jul 2012 01:03:35 +0000 (11:03 +1000)]
Fix crash in signal change notification override

Manual overrides of automatically generated property change
notification signals can cause crashes.  They also don't work
properly in the situations where they don't crash.  This patch
ensures that it is now a compile error to attempt to override a
signal with a manual signal or slot.

Note that this includes signals defined in superclasses.

Task-number: QTBUG-26723
Task-number: QTBUG-26818
Change-Id: I4ecf448ce9de5d97526606126991e280debea2d6
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
11 years agoAvoid overriding changed signal
Alan Alpert [Thu, 16 Aug 2012 03:10:21 +0000 (13:10 +1000)]
Avoid overriding changed signal

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>
11 years agoMove docs closer to the members that they document
Bea Lam [Fri, 10 Aug 2012 04:40:52 +0000 (14:40 +1000)]
Move docs closer to the members that they document

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>
11 years agoReduce memory consumption of source coordinates
Matthew Vogt [Thu, 9 Aug 2012 03:26:32 +0000 (13:26 +1000)]
Reduce memory consumption of source coordinates

Reduce memory consumption by storing source location coordinates
as 16-bit variables (in run-time structures).  Also modify qmlmin
to restrict line lengths so that the column bound is not normally
exceeded.

Change-Id: I08605626ffbdf081b6da2aea1116bdfe24998572
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
11 years agoRemove the use of QWidgetStar from QtQml.
Stephen Kelly [Tue, 7 Aug 2012 08:54:39 +0000 (10:54 +0200)]
Remove the use of QWidgetStar from QtQml.

The enum value can be removed so that it can be replaced in functionality
with QMetaType::PointerToQObject. There is no advantage to QtDeclarative
knowing that a value is a QWidget pointer.

Change-Id: I14530132bc37fbb0dc55ba8aaa5bb68db0d87bad
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
11 years agoFix build with QT_NO_ACCESSIBILITY.
Frederik Gladhorn [Mon, 13 Aug 2012 20:08:26 +0000 (22:08 +0200)]
Fix build with QT_NO_ACCESSIBILITY.

Change-Id: I52e4f54e0308d9fef4b9a19586d3e2ff696f0a5b
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoOnly build accessibility test when a11y is enabled.
Frederik Gladhorn [Mon, 13 Aug 2012 13:07:46 +0000 (15:07 +0200)]
Only build accessibility test when a11y is enabled.

Change-Id: I4f3012801b2775c75cf84b640c7a9821a6b21075
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
11 years agoThree scene graph examples with docs.
Gunnar Sletta [Mon, 30 Jul 2012 09:09:23 +0000 (11:09 +0200)]
Three scene graph examples with docs.

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>
11 years agoFix the dependencies of QQuickTest.
Stephen Kelly [Fri, 3 Aug 2012 13:36:12 +0000 (15:36 +0200)]
Fix the dependencies of QQuickTest.

It consists of only one public method whose API only depends on QtCore headers.
Make everything else 'private' in the sense of what is communicated by the
buildsystem.

Task-number: QTBUG-26753
Change-Id: Id9d78339173c8f3f733103325c6593b8960a0585
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
11 years agomake use of QT_PRIVATE to specify private Qt dependencies
Oswald Buddenhagen [Tue, 7 Aug 2012 17:34:44 +0000 (19:34 +0200)]
make use of QT_PRIVATE to specify private Qt dependencies

Change-Id: Ia6bf273ff8ed63e13ea9f5c469b5f8e2702a4ee7
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
11 years agofollow rename of qt_module_config.prf to qt_module.prf
Oswald Buddenhagen [Tue, 7 Aug 2012 17:08:54 +0000 (19:08 +0200)]
follow rename of qt_module_config.prf to qt_module.prf

Change-Id: I8a13b3aca195b9e8331478d73cd338ab66d65d1f
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
11 years agoMore consistent examples directory structure
Alan Alpert [Thu, 9 Aug 2012 01:24:20 +0000 (11:24 +1000)]
More consistent examples directory structure

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>
11 years agoPermit value types with metatype IDs >= QMetaType::User
Matthew Vogt [Wed, 1 Aug 2012 00:27:17 +0000 (10:27 +1000)]
Permit value types with metatype IDs >= QMetaType::User

Remove the assumption that value types must be types defined by
Qt, having metatype IDs below QMetaType::User.

Task-number: QTBUG-26352
Change-Id: Ib5a56ff2e7892e82adf17a3a1e7517a0c9fe0534
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
11 years agoRemove remnants of QQmlImageProvider
Kent Hansen [Wed, 8 Aug 2012 11:13:25 +0000 (13:13 +0200)]
Remove remnants of QQmlImageProvider

QQmlImageProvider was renamed to QQuickImageProvider quite some time
ago.

Change-Id: I2f737f1e2a543c0abb0f45170499c41de25cf696
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
11 years agoAdd unit test for concatenated property name access
Chris Adams [Thu, 9 Aug 2012 05:01:13 +0000 (15:01 +1000)]
Add unit test for concatenated property name access

Task-number: QTBUG-23126
Change-Id: I706d5f4ba49a554c3816146f15a87e001cde9a3f
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
11 years agoImprove main QtQml and QtQuick doc pages
Bea Lam [Thu, 9 Aug 2012 02:07:02 +0000 (12:07 +1000)]
Improve main QtQml and QtQuick doc pages

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>
11 years agoFix default property docs
Bea Lam [Thu, 9 Aug 2012 05:09:16 +0000 (15:09 +1000)]
Fix default property docs

Item's default property is data.

Change-Id: I60577f4cfbe954ab3311703915f43fecf4ed9bf2
Reviewed-by: Bea Lam <bea.lam@nokia.com>
11 years agoChange error messages to reflect new module terminology
Chris Adams [Wed, 8 Aug 2012 06:31:50 +0000 (16:31 +1000)]
Change error messages to reflect new module terminology

Previously, modules which registered types into a protected type
namespace were known as "strict" modules; now they are known as
"identified" modules.

This commit also adds a unit test to ensure that the module identifier
directive is the first command in the qmldir file.

Change-Id: I90e9d2c5b51ecb2b9d058c9fe9d9310fd3cd4f45
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
Reviewed-by: Bea Lam <bea.lam@nokia.com>
11 years agoAllow invokable functions of value-type classes to be called
Chris Adams [Mon, 16 Jul 2012 06:32:49 +0000 (16:32 +1000)]
Allow invokable functions of value-type classes to be called

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>
11 years agoEnsure that copy sequences can be passed as arguments
Chris Adams [Wed, 8 Aug 2012 04:53:45 +0000 (14:53 +1000)]
Ensure that copy sequences can be passed as arguments

Previously, automatic conversion from JS array to sequence copy
resource was not performed in the case where the array was passed as
a parameter to a QObject function invocation.  This commit adds code
to check if the parameter type is a sequence type - and if so, and if
the value is a variantlist, we convert it to a sequence of the
appropriate type.

Change-Id: I3cc3e2f95604bc71d1d8d237e1acffa1e03b78ba
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
11 years agoFix test failures in Qt Location with string lists.
Glenn Watson [Thu, 9 Aug 2012 00:59:31 +0000 (10:59 +1000)]
Fix test failures in Qt Location with string lists.

Cloning the V8 prototype introduces some unexpected behaviour in
the way string lists are used in Qt Location. Instead, leave the
prototype intact and used a named property accessor to return the
sort method for sequence wrappers.

A test case will be added to declarative once a more isolated test
case has been created.

Change-Id: I533a66f60af4394a2cc8c938fdfc13bd193f0065
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
11 years agocanvas-related doc fixes
Bea Lam [Mon, 6 Aug 2012 04:21:58 +0000 (14:21 +1000)]
canvas-related doc fixes

- 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>
11 years agoDocument some undocumented AnimatedSprite functions
Bea Lam [Wed, 8 Aug 2012 06:34:21 +0000 (16:34 +1000)]
Document some undocumented AnimatedSprite functions

Change-Id: If6ac34a989d5770b1f3e2481a01ee57ad89f7707
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
11 years agoVarious small doc fixes and improvements
Bea Lam [Wed, 8 Aug 2012 06:33:05 +0000 (16:33 +1000)]
Various small doc fixes and improvements

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>
11 years agoUncomment examples in pro file
Alan Alpert [Tue, 7 Aug 2012 07:37:20 +0000 (17:37 +1000)]
Uncomment examples in pro file

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>
11 years agoFix uses of \inmodule, \inqqmlmodule and \since
Bea Lam [Wed, 8 Aug 2012 06:33:34 +0000 (16:33 +1000)]
Fix uses of \inmodule, \inqqmlmodule and \since

Some classes and QML types were missing these or had the wrong values.

Change-Id: Ic6376b8b450301f8ae0549e636f4bc2db4400f2b
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
11 years agoAdd more to visual parent docs
Bea Lam [Fri, 3 Aug 2012 07:29:47 +0000 (17:29 +1000)]
Add more to visual parent docs

Change-Id: I57de0f9f55c3a32da991032f7d8246518d637c15
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
11 years agoRename "JavaScript" section title
Bea Lam [Wed, 8 Aug 2012 06:49:42 +0000 (16:49 +1000)]
Rename "JavaScript" section title

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>
11 years agoUpdate imports and module documentation
Chris Adams [Mon, 6 Aug 2012 02:15:32 +0000 (12:15 +1000)]
Update imports and module documentation

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>
11 years agoAdd missing VisualDataGroup documentation.
Andrew den Exter [Mon, 6 Aug 2012 07:36:20 +0000 (17:36 +1000)]
Add missing VisualDataGroup documentation.

Change-Id: I7d1a948dfcfec5fca87ddc393fdb75f544526e56
Reviewed-by: Bea Lam <bea.lam@nokia.com>
11 years agoProvide features/use-case docs in QML AppDevGuide
Alan Alpert [Thu, 19 Jul 2012 01:05:05 +0000 (11:05 +1000)]
Provide features/use-case docs in QML AppDevGuide

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>
11 years agoAdd type name to singleton (module api) implementations.
Glenn Watson [Tue, 24 Jul 2012 01:41:50 +0000 (11:41 +1000)]
Add type name to singleton (module api) implementations.

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>
11 years agoAllow signal parameters which are custom QML object-types
Chris Adams [Fri, 13 Jul 2012 05:53:04 +0000 (15:53 +1000)]
Allow signal parameters which are custom QML object-types

This commit allows lazy resolution of signal parameter types, which
allows QML object types to be used as signal parameters.  If a signal
is emitted with an incorrect parameter type, it will be passed through
as a null parameter.

Task-number: QTBUG-14550
Change-Id: I7e899ad57452826cc405bed10c541f8d35789d04
Reviewed-by: Martin Jones <martin.jones@nokia.com>
11 years agoFix uses of various qml doc commands
Bea Lam [Mon, 6 Aug 2012 04:25:24 +0000 (14:25 +1000)]
Fix uses of various qml doc commands

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>
11 years agoSupport JS Array.sort() function for sequence wrappers.
Glenn Watson [Wed, 18 Jul 2012 03:20:00 +0000 (13:20 +1000)]
Support JS Array.sort() function for sequence wrappers.

The V8 natve sort implementation calls some functions that are
incompatible with the way sequence wrappers work. In particular,
it calls an internal length() function which does not pass through
the length accessor provided by sequence wrappers, so the sort
function always thinks the array is zero length. Instead, clone the
array prototype and override the sort function with one that is
specific to sequence wrappers.

Task-number: QTBUG-25269
Change-Id: Ic83b9ee0bd3a0707e512f28057f0f99b432fded4
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
11 years agoExplicitly initialize base class.
Andrew den Exter [Tue, 7 Aug 2012 05:16:05 +0000 (15:16 +1000)]
Explicitly initialize base class.

Fixes warning.

Change-Id: I29a694fae4408639ebf7e57993139f39a518e0d4
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>