profile/ivi/qtdeclarative.git
12 years agoFixed tst_qgstextinput
Toby Tomkins [Tue, 13 Sep 2011 01:57:58 +0000 (11:57 +1000)]
Fixed tst_qgstextinput

In commit e71904e231e27e6f6f88b35c4a7e2d7cf8ba2640, this was commented
out, this does not relate to the removal of v8 from declarative.
(related http://codereview.qt-project.org/#change,3093)

Change-Id: Idcc23e27577df6f53ddf256c1ea74bf7ecc5c351
Reviewed-on: http://codereview.qt-project.org/4621
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoRefactor SpriteEngine out of StochasticEngine
Alan Alpert [Mon, 12 Sep 2011 23:39:11 +0000 (09:39 +1000)]
Refactor SpriteEngine out of StochasticEngine

Also add ParticleGroups which use only StochasticStates
Simplistic change for now, just to focus the API for the
particle system. ParticleGroup elements replace the particleStates
property on the system, and the term "group" is now used more
consistently.

Change-Id: I6456f9c521b8166ccd94ea953275557bcfbf6423
Reviewed-on: http://codereview.qt-project.org/4699
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoImplement Turbulence properly
Alan Alpert [Fri, 9 Sep 2011 07:21:14 +0000 (17:21 +1000)]
Implement Turbulence properly

Or at least closer to. Now uses curl noise off of a source noise image,
documented as usable, and not an immense performance drain (just a
normal one).

Change-Id: Iac11c98cd9589cbe6a41b2b30893ab40d541d18f
Reviewed-on: http://codereview.qt-project.org/4510
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoDocument Particle type
Alan Alpert [Wed, 7 Sep 2011 02:19:01 +0000 (12:19 +1000)]
Document Particle type

Change-Id: I22db94cd55f02461cbe8e56b4fb6d3c1db0180a1
Reviewed-on: http://codereview.qt-project.org/4297
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoReduce compile warnings
Alan Alpert [Fri, 9 Sep 2011 02:09:42 +0000 (12:09 +1000)]
Reduce compile warnings

Also change QSGDirection::sample to pass by value.

Change-Id: I878649158b78da22afdf77b5f3ce3263ce1070cd
Reviewed-on: http://codereview.qt-project.org/4497
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoOrder of operations fix
Alan Alpert [Fri, 9 Sep 2011 04:44:04 +0000 (14:44 +1000)]
Order of operations fix

Recycling needs to be done always, and currently here is the only time
it's supposed to happen each tick.

Change-Id: Ia03b2a6d1d884bdee784b47c447745c7e3aee2c6
Reviewed-on: http://codereview.qt-project.org/4508
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoMake activeGroups usable.
Alan Alpert [Fri, 9 Sep 2011 04:45:20 +0000 (14:45 +1000)]
Make activeGroups usable.

It actually relied on functionality inside the affectSystem method,
when it was intended to be used in subclass reimplmentations. That
functionality is now in the function itself.

Change-Id: Ie01f5a5d18a15ca207422869d221d75d63b17789
Reviewed-on: http://codereview.qt-project.org/4509
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agocanvas item refactors
Charles Yin [Tue, 9 Aug 2011 06:44:38 +0000 (16:44 +1000)]
canvas item refactors

1.Supports tiled canvas with canvasSize, tileSize and canvasWindow
2.Supports different rendering targets: Canvas.Image and
  Canvas.FrameBufferObject by renderTarget property
3.Supports thread rendering when possible by threadRendering property.
4.Refactors QSGContext2D code, move some logic to
  QSGContext2DCommandBuffer,QSGContext2DTexture,QSGContext2DTile, etc
5.Updates/adds some canvas examples
6.Some improvements for context2d API
   6.1 drawImage() now loads image asynchoronously and draw images
       automatically when they are ready
   6.2 adds fillRule supports
   6.3 add svg path supports
   6.4 Pixel operations (getImageData/putImageData/createImageData)
       now have better performance by using V8 indexed array accessors
   6.5 Uses QTransform instead of QMatrix
   6.6 Gradients/patterns now are V8 values, not QObjects
   6.7 Supports measureText and TextMetrics interface
   6.8 Gives not support warnings for unimplemented functions
       (drawFocusRing,setCaretSelectionRect,caretBlinkRate)
   6.9 Better error handling, throw standard DOM exceptions according
       to the HTML5 context2d spec.
   6.10 Adds shear, resetTransform to matrix operations
   6.11 Adds roundedRect, ellipse, text to path operations
   6.12 Adds new features to CanvasImageData interface
      1) adds mirror() function
      2) adds filter() function, include the following filters:
          Threshold
          GrayScale
          Brightness
          Invert
          Blur
          Blend
          Opaque
          Convolute
7. Adds documentations

Change-Id: Id19224260d6a3fdc589d1f9681c34a88a7e7b3e5
Reviewed-on: http://codereview.qt-project.org/3621
Reviewed-by: Charles Yin <charles.yin@nokia.com>
12 years agoPort change 67ed1849 from Qt 4.7
Martin Jones [Mon, 12 Sep 2011 02:40:20 +0000 (12:40 +1000)]
Port change 67ed1849 from Qt 4.7

Flickable could flick in wrong direction if given too few touch samples

If we got <= QML_FLICK_DISCARDSAMPLES the previous velocity was not
cleared, so the view would continue flicking with the previous
velocity, and therefore the previous direction.

Task-number: QT-4903

Change-Id: Ie4c2a3829026c0bf7d94cf5b60c0b7ff9833f725
Reviewed-on: http://codereview.qt-project.org/4618
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoExperimental 'pixelAligned' property for Flickable.
Martin Jones [Fri, 9 Sep 2011 06:48:03 +0000 (16:48 +1000)]
Experimental 'pixelAligned' property for Flickable.

Change-Id: I671af87c4d2db3403ab506ae32608c91d6982338
Reviewed-on: http://codereview.qt-project.org/4506
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoRestructure test to use QTRY_ macro for instability.
Toby Tomkins [Fri, 9 Sep 2011 04:12:53 +0000 (14:12 +1000)]
Restructure test to use QTRY_ macro for instability.

Restructure test to use QTRY_ for asynchronous gui functions. Remove
reference to specific X11 and generalise event queue processing for
all platforms.

Change-Id: I38d8b7419d644ea1d8558f88b48f8b4004804c32
Reviewed-on: http://codereview.qt-project.org/4495
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoMake state a public property of QSGItem.
Michael Brasser [Fri, 9 Sep 2011 04:03:31 +0000 (14:03 +1000)]
Make state a public property of QSGItem.

The property type is QString, so doesn't need to be private.

Change-Id: If1d1a740be451331e8142fbe1d89fda2eeff4509
Reviewed-on: http://codereview.qt-project.org/4499
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Charles Yin <charles.yin@nokia.com>
12 years agoFix missing and outdated license headers.
Jason McDonald [Wed, 7 Sep 2011 06:57:21 +0000 (16:57 +1000)]
Fix missing and outdated license headers.

Change-Id: I940ced2e84a86daabc5158d348b05b7532cb1c22
Reviewed-on: http://codereview.qt-project.org/4314
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoUpdate images in falling leaves particle demo.
Michael Brasser [Fri, 9 Sep 2011 02:06:36 +0000 (12:06 +1000)]
Update images in falling leaves particle demo.

Original images were causing warnings with libpng.

Change-Id: I697f20ee3968b0e27f12dc55eb20ea46f809a46e
Reviewed-on: http://codereview.qt-project.org/4496
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoMissed an example in previous name changes
Alan Alpert [Fri, 9 Sep 2011 01:49:32 +0000 (11:49 +1000)]
Missed an example in previous name changes

One non-essential varaible still had the old name, leading to a
non-fatal warning. It is now rectified.

Change-Id: I4ebcf92b3521aeff92e4da89f41b8c81c2f6ab96
Reviewed-on: http://codereview.qt-project.org/4494
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agoCompile fix.
Michael Brasser [Fri, 9 Sep 2011 00:42:05 +0000 (10:42 +1000)]
Compile fix.

Change-Id: Iac8fd75a805a7f62638275fe05123a13198d5260
Reviewed-on: http://codereview.qt-project.org/4489
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoImprove efficiency of qmlEngine()
Aaron Kennedy [Fri, 9 Sep 2011 01:12:06 +0000 (11:12 +1000)]
Improve efficiency of qmlEngine()

Also document qmlEngine() and qmlContext()

Change-Id: I83eb092490160eee72d87473befdcea1492ded13
Reviewed-on: http://codereview.qt-project.org/4491
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
12 years agoadd convenient function pixmap() function for QSGImageBase
Charles Yin [Thu, 8 Sep 2011 05:00:55 +0000 (15:00 +1000)]
add convenient function pixmap() function for QSGImageBase

Change-Id: I30e5c81daf10f001120ef04fe50f347f0b8578bb
Reviewed-on: http://codereview.qt-project.org/4387
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agomake the testcase name the same in both plain text and xml/xunit logs for qmltest
Charles Yin [Fri, 2 Sep 2011 05:44:47 +0000 (15:44 +1000)]
make the testcase name the same in both plain text and xml/xunit logs for qmltest

Change-Id: I911b3c7ba698b6c94aaa712eeaa917301c651e64
Reviewed-on: http://codereview.qt-project.org/4112
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoOnly fast-foward states when there is a transition.
Michael Brasser [Thu, 8 Sep 2011 05:22:22 +0000 (15:22 +1000)]
Only fast-foward states when there is a transition.

Fast-forwarding is only required when we are animating a state change.

Task-number: QTBUG-16662
Change-Id: I20e1a056cb3268b92b606be34809bcd0e2bfb898
Reviewed-on: http://codereview.qt-project.org/4390
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Charles Yin <charles.yin@nokia.com>
12 years agoJSDebugging: Update Auto Test cases.
Aurindam Jana [Wed, 7 Sep 2011 10:44:00 +0000 (12:44 +0200)]
JSDebugging: Update Auto Test cases.

Removed multiple timers from qml file and updated test case
verification.

Change-Id: I27a9755a54c893658f76eeaf29f4813dafc71b7d
Reviewed-on: http://codereview.qt-project.org/4345
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
12 years agoJSDebugging: Send messages for events BeforeCompile to Client.
Aurindam Jana [Wed, 7 Sep 2011 10:46:34 +0000 (12:46 +0200)]
JSDebugging: Send messages for events BeforeCompile to Client.

Change-Id: Ia4f2a290f94cc406c64a69e443521403b94db493
Reviewed-on: http://codereview.qt-project.org/4348
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
12 years agoParticles module refactoring en masse
Alan Alpert [Tue, 6 Sep 2011 00:40:21 +0000 (10:40 +1000)]
Particles module refactoring en masse

All the little changes in one commit.

StochasticDirection -> Direction
AngledDirection -> AngleDirection
TargetedDirection -> TargetDirection
QSGCustomParticle is now Affector's implementation (C++ only refactor)
FollowEmitter -> TrailEmitter
Kill -> Age and gained lifeLeft property
ModelParticle is removed, use ItemParticle instead.
Added RectangleShape to replace Shape for the case of Rectangles
Abstract Types are no longer createable, despite sensible defaults.
GLSL variables in CustomParticle now begin with qt_
JS variables are now such that x,vx,ax are current (old ones are now
initialX, initialVX, initialAX). Same for y. A few more were extended.
Emitter::emitCap -> Emitter::maximumEmitted. Set to -1 for noCap: false
Emitter::noCap is gone.
Emitter::emitting -> Emitter::enabled
Affector::active -> Affector::enabled
Affector::collisionParticles -> Affector::whenCollidingWith
Affector::signal is gone.
PointAttractor -> Attractor
Attractor/Wander::physics -> ::affectedParameter
ParticleSystem::fastForward is gone
ParticleSystem::startTime is gone (use Emitter::startTime)
ParticleSystem::clear -> ParticleSystem::empty
And various Doc fixes.

Change-Id: Ia3b02b987f692e6f1bd14c42e575381bdfb7bbb5
Reviewed-on: http://codereview.qt-project.org/4231
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoWhitespace fix
Alan Alpert [Wed, 31 Aug 2011 08:33:57 +0000 (18:33 +1000)]
Whitespace fix

In this case, the extra space makes it fail to find the signal.

Change-Id: I18cc47e1bf979150f2fbf71edbc93aaf4b5c73c7
Reviewed-on: http://codereview.qt-project.org/3922
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoAugment Particle Docs
Alan Alpert [Thu, 1 Sep 2011 11:43:20 +0000 (21:43 +1000)]
Augment Particle Docs

Just filling out some sections.

Change-Id: I5ffe1bf558a556035745ddeae058b0b2f7ecf258
Reviewed-on: http://codereview.qt-project.org/4071
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoAllow particles to have eternal life
Alan Alpert [Thu, 1 Sep 2011 10:11:42 +0000 (20:11 +1000)]
Allow particles to have eternal life

Change-Id: I3b776a6e79cb064e826cb7b7721a3a57744225c1
Reviewed-on: http://codereview.qt-project.org/4064
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoAllow affectors to be transformed
Alan Alpert [Thu, 1 Sep 2011 08:47:26 +0000 (18:47 +1000)]
Allow affectors to be transformed

Change-Id: I4452707589d7b98709cd995569a5bf36bd5448a0
Reviewed-on: http://codereview.qt-project.org/4053
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoAdd clear property to QSGParticleSystem
Alan Alpert [Thu, 1 Sep 2011 07:59:11 +0000 (17:59 +1000)]
Add clear property to QSGParticleSystem

Makes it possible to pause the system when all particles are expired.

Change-Id: Iebeb987c2e2af261bdffa4584d75f3b108dcf050
Reviewed-on: http://codereview.qt-project.org/4046
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoAdd new path functionality.
Michael Brasser [Wed, 31 Aug 2011 22:47:56 +0000 (08:47 +1000)]
Add new path functionality.

Introduces new elements PathCurve, PathArc, PathSvg,
PathAnimation, and PathInterpolator.

Change-Id: I0f5b6284511f332e826ed373018418d2e2a8c07e
Reviewed-on: http://codereview.qt-project.org/4220
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoAnimation-like API for ParticleSystem
Alan Alpert [Thu, 1 Sep 2011 05:27:05 +0000 (15:27 +1000)]
Animation-like API for ParticleSystem

Includes skipping rendering when paused.

Change-Id: I353ac415fb877917d46ba1832ad9cb5a84640b57
Reviewed-on: http://codereview.qt.nokia.com/4041
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoDoc fix for QDeclarativeEngine
Damian Jansen [Wed, 7 Sep 2011 01:17:27 +0000 (11:17 +1000)]
Doc fix for QDeclarativeEngine

imageProvider return details in wrong place.

Change-Id: I5e2162b88a6bfd95222b9a7ac87d408c7740558d
Reviewed-on: http://codereview.qt.nokia.com/4295
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
12 years agoremove useless debug log
Charles Yin [Wed, 7 Sep 2011 06:47:00 +0000 (16:47 +1000)]
remove useless debug log

Change-Id: I715135c54db97df38bdd7915a01efbb3596d549a
Reviewed-on: http://codereview.qt.nokia.com/4313
Reviewed-by: Charles Yin <charles.yin@nokia.com>
12 years agoFix left alignment of native RTL pre-edit text.
Andrew den Exter [Fri, 20 May 2011 04:22:39 +0000 (14:22 +1000)]
Fix left alignment of native RTL pre-edit text.

If there is no committed text in a TextInput or TextEdit determine
if the pre-edit text is right to left before falling back to the
global keyboard settings.

Change-Id: I7e5568e936341602b8faf7be120f9a770c115f48
Task-number: QMLNG-72
Reviewed-by: Michael Brasser
Reviewed-on: http://codereview.qt.nokia.com/4176
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agoFix min extents to correctly consider header size
Bea Lam [Mon, 5 Sep 2011 00:59:28 +0000 (10:59 +1000)]
Fix min extents to correctly consider header size

Regression from c0fc795f which changed implementation to always position
header at a negative position, and not just when visibleItems is empty.

Task-number: QTBUG-21207

Change-Id: I9a888e7e30b00f70835734b1e0e75e57ed282602
Reviewed-on: http://codereview.qt.nokia.com/4159
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agomore fixes for QTBUG-17868
Charles Yin [Tue, 6 Sep 2011 03:54:46 +0000 (13:54 +1000)]
more fixes for QTBUG-17868

QDeclarativePropertyCache bypasses the previous fix, need to check the
property name when property cache try to create property.

Change-Id: Ibccc02df568a8ded3626bb914150ba9ee87d238f
Task-number:QTBUG-17868
Reviewed-on: http://codereview.qt.nokia.com/4230
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agoEnsure that header/footer resize fixes position.
Martin Jones [Tue, 6 Sep 2011 06:28:32 +0000 (16:28 +1000)]
Ensure that header/footer resize fixes position.

If the header or footer is resized the view must ensure that
it is still within bounds.

Change-Id: I5f7aa61dc9ccec8dd16457d8d4e4966434e4b1e0
Reviewed-on: http://codereview.qt.nokia.com/4236
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bea Lam <bea.lam@nokia.com>
12 years agoAdd garbage collector prologue callback to qv8engine
Chris Adams [Fri, 26 Aug 2011 03:54:00 +0000 (13:54 +1000)]
Add garbage collector prologue callback to qv8engine

This commit provides a generic way to manage persistent handles
created by QML so that circular references don't cause leaks, by
utilising v8's garbage collector callbacks.

Change-Id: Ia898197fdf5d86b90915b835ce3e532f7d400de4
Reviewed-on: http://codereview.qt.nokia.com/3688
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
12 years agoImprovements to textFormat: Text.StyledText
Yann Bodson [Tue, 30 Aug 2011 04:40:41 +0000 (14:40 +1000)]
Improvements to textFormat: Text.StyledText

Add support for:
 - <h1> to <h6> headers
 - <p> paragraph
 - <u> underlined text
 - <a> anchor
 - <ol> <ul> <li> ordered and unordered lists (including type attribute)

Change-Id: I187e740caf19aedc46f2ab15565190ef9c40acd0
Reviewed-on: http://codereview.qt.nokia.com/3840
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
12 years agoUpdate TextEdit tests with changes from 4.8.
Andrew den Exter [Mon, 9 May 2011 03:57:34 +0000 (13:57 +1000)]
Update TextEdit tests with changes from 4.8.

Test are for changes cherry-picked to qtbase as:
8febd569408db19c8a83e16cc7a8574f9b00084b
bb2f045c10965542ae14275e8ce5a97e42931d8d

Change-Id: I186b80be1a706d8be442d4e6e5e2734ec677d235
Reviewed-on: http://codereview.qt.nokia.com/4172
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
12 years agoDelay masking the last character in Password echo mode.
Andrew den Exter [Tue, 19 Jul 2011 05:15:58 +0000 (15:15 +1000)]
Delay masking the last character in Password echo mode.

If QT_GUI_PASSWORD_ECHO_DELAY is defined in qplatformdefs.h with an
integer value in milliseconds, QLineEdit and TextInput will display
the last character entered unmasked for that delay period and then
mask the character as normal.  If QT_GUI_PASSWORD_ECHO_DELAY is
not defined then the behaviour is unchanged.

Task-number: QTBUG-17003
Reviewed-by: Martin Jones
(cherry picked from commit f9e7aee2019d321edd655bfde7de43f20a106971)

Change-Id: Iddfa0daa1b39f0589cab27e5003fdd86ad81ff89
Reviewed-on: http://codereview.qt.nokia.com/4170
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
12 years agoView refill operations should take qreal, not int
Bea Lam [Mon, 5 Sep 2011 01:40:10 +0000 (11:40 +1000)]
View refill operations should take qreal, not int

Regression from initial creation of QSGItemView.

Task-number: QTBUG-21281
Change-Id: I810a0b56ba4bacda49ac62b6e4c11cf9c1825c10
Reviewed-on: http://codereview.qt.nokia.com/4160
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoJSDebugging Auto Test: Fix build break.
Aurindam Jana [Mon, 5 Sep 2011 15:36:52 +0000 (17:36 +0200)]
JSDebugging Auto Test: Fix build break.

Change-Id: I7969267e6331f8d348f7206c4aff99c99294e515
Reviewed-on: http://codereview.qt.nokia.com/4216
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
12 years agoRemove friend class QV8DebugService from QV8Engine.
Aurindam Jana [Fri, 2 Sep 2011 16:05:29 +0000 (18:05 +0200)]
Remove friend class QV8DebugService from QV8Engine.

The friend class is now redundant since QVDebugService now uses only public methods of QV8Engine.

Change-Id: I492555d75bcbe08f921c5f2c3d634c691ed1223c
Reviewed-on: http://codereview.qt.nokia.com/4151
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
12 years agoAuto Unit test cases for Javascript Debugging.
Aurindam Jana [Thu, 1 Sep 2011 10:32:11 +0000 (12:32 +0200)]
Auto Unit test cases for Javascript Debugging.

Change-Id: Iad2deee390deb916854795d27dc38d70891930f6
Reviewed-on: http://codereview.qt.nokia.com/4067
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
12 years agoAdd examples and tests for QtQuick1
Damian Jansen [Thu, 1 Sep 2011 00:46:27 +0000 (10:46 +1000)]
Add examples and tests for QtQuick1

A straight copy of what was available in Qt 4.7, modified
where necessary to use the QtQuick1 module, so as to still
compile and run in Qt5.

Change-Id: I9a95afb96e3f522fbd600eb6dbd3fdac9558b059
Reviewed-on: http://codereview.qt.nokia.com/4019
Reviewed-by: Bea Lam <bea.lam@nokia.com>
12 years agoUpdate extension tutorials and examples to QtQuick2
Damian Jansen [Tue, 30 Aug 2011 06:18:20 +0000 (16:18 +1000)]
Update extension tutorials and examples to QtQuick2

Also add missing licence header and update example tests

Change-Id: Ic2dc8c893ddf22f646eaeba86b6f3b4a2772726c
Reviewed-on: http://codereview.qt.nokia.com/3844
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
12 years agoFix some memory leaks in the compiler
Chris Adams [Tue, 2 Aug 2011 05:41:22 +0000 (15:41 +1000)]
Fix some memory leaks in the compiler

Task-number: QTBUG-17770
Change-Id: I6d9d357bf529a9a3f414182fb6a818ddedda8e18
Reviewed-on: http://codereview.qt.nokia.com/2487
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agoFix build break for QT_OPENGL_ES builds.
Jonni Rainisto [Fri, 2 Sep 2011 08:35:11 +0000 (11:35 +0300)]
Fix build break for QT_OPENGL_ES builds.

Change-Id: I1e277e79bd9b3f38e3540495e8006f1c41cfecc8
Reviewed-on: http://codereview.qt.nokia.com/4122
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Wolf-Michael Bolle <wolf-michael.bolle@nokia.com>
Reviewed-by: Jonni Rainisto <jonni.rainisto@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoDebugger: Merge back changes from Qt Creator copy
Kai Koehne [Wed, 31 Aug 2011 10:41:04 +0000 (12:41 +0200)]
Debugger: Merge back changes from Qt Creator copy

Apply changes done to the Qt Creator copy. In Qt Creator we also support
connecting via OST, which we don't do inside QtDeclarative because it
would pull in dependencies. Anyhow, make the code align nevertheless.

Change-Id: I98f0be5ed3e136374e163cf1400df100128497ee
Reviewed-on: http://codereview.qt.nokia.com/3943
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
12 years agoDebugger: Fixing coding style issues
Kai Koehne [Wed, 31 Aug 2011 10:38:54 +0000 (12:38 +0200)]
Debugger: Fixing coding style issues

Applying changes done in the Qt Creator copies.

Change-Id: I11e0547ddedd2e1f0b99d0ea586a1b209fa8d912
Reviewed-on: http://codereview.qt.nokia.com/3942
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
12 years agoDebugger: Move QT_DECLARATIVE_DEBUG handling out of qdeclarative.h
Kai Koehne [Wed, 31 Aug 2011 08:01:19 +0000 (10:01 +0200)]
Debugger: Move QT_DECLARATIVE_DEBUG handling out of qdeclarative.h

Apps don't have to (directly or indirectly) include qdeclarative.h.
Instead, move the static instance to qdeclarativeengine.h, and
qdeclarativeview.h, qsgview.h (which instantiate their own engine).

Change-Id: I8b3e63ad4f134969734a2cc712395145d90e0dfa
Reviewed-on: http://codereview.qt.nokia.com/3941
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoDebugger: Add private header warning to all _p.h files
Kai Koehne [Wed, 31 Aug 2011 07:23:45 +0000 (09:23 +0200)]
Debugger: Add private header warning to all _p.h files

Change-Id: Ib5cccd8a2f252a2e67c8e0fdf979c3e8114ff131
Reviewed-on: http://codereview.qt.nokia.com/3940
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoDebugger: Canonalize header defines
Kai Koehne [Wed, 31 Aug 2011 07:19:57 +0000 (09:19 +0200)]
Debugger: Canonalize header defines

Change-Id: I2cbe704326e993c47dd78182683787394f598ae4
Reviewed-on: http://codereview.qt.nokia.com/3939
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
12 years agoDebugger: Add missing QT_BEGIN_NAMESPACE, QT_END_NAMESPACE
Kai Koehne [Wed, 31 Aug 2011 07:17:57 +0000 (09:17 +0200)]
Debugger: Add missing QT_BEGIN_NAMESPACE, QT_END_NAMESPACE

Change-Id: I7cb404eac7a3f469fc6b1d40398ab0c40787cc8d
Reviewed-on: http://codereview.qt.nokia.com/3938
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
12 years agoDebugger: Fix indentation & trailing whitespace
Kai Koehne [Wed, 31 Aug 2011 07:15:05 +0000 (09:15 +0200)]
Debugger: Fix indentation & trailing whitespace

Change-Id: I4b85b205a359e4c3adc1fcb6682945724a0910c5
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Reviewed-on: http://codereview.qt.nokia.com/3937
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
12 years agoDebugger: Also fix the name of the qdeclarativedebug autotest
Kai Koehne [Wed, 31 Aug 2011 09:30:31 +0000 (11:30 +0200)]
Debugger: Also fix the name of the qdeclarativedebug autotest

Change-Id: Ia9d31f9228b9d9e63eccaf2577bf24b3929e5fad
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Reviewed-on: http://codereview.qt.nokia.com/3936
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoExported QSGShaderEffectMesh.
Kim Motoyoshi Kalland [Wed, 31 Aug 2011 15:40:42 +0000 (17:40 +0200)]
Exported QSGShaderEffectMesh.

Reintroduced the possibility to set the ShaderEffect::mesh
property to any object deriving from QSGShaderEffectMesh.

Change-Id: Idf91b2289d4e7b8fd12993a4a2bc1647dfba0ae0
Reviewed-on: http://codereview.qt.nokia.com/4003
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
12 years agoEnsure layout is done after delayed deletion of items
Bea Lam [Fri, 2 Sep 2011 08:04:00 +0000 (18:04 +1000)]
Ensure layout is done after delayed deletion of items

Regression from 1dd8b509074ba60da671f7671f8cf09c3fc001ae

Change-Id: I5957444e2f1493aa8fbf3b532fd1ef704deec50c
Reviewed-on: http://codereview.qt.nokia.com/4118
Reviewed-by: Bea Lam <bea.lam@nokia.com>
12 years agoUpdate more examples to QtQuick 2.0
Damian Jansen [Fri, 26 Aug 2011 05:38:56 +0000 (15:38 +1000)]
Update more examples to QtQuick 2.0

Minehunt and abstractitemmodel examples use QSGview
Snake now using Particles 2.0
Minor examples and twitter have updated imports
Removed duplicate delegate example

Change-Id: I04f8f8aeb8ef34ab2a8678ccc1d6d594b9db166e
Reviewed-on: http://codereview.qt.nokia.com/3630
Reviewed-by: Bea Lam <bea.lam@nokia.com>
12 years agoUpdate various examples to QtQuick 2.0
Damian Jansen [Fri, 26 Aug 2011 01:51:32 +0000 (11:51 +1000)]
Update various examples to QtQuick 2.0

And remove many duplicate and obsolete files

Change-Id: I5416b2b276893d85233918b1a24a30659830d42e
Reviewed-on: http://codereview.qt.nokia.com/3623
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bea Lam <bea.lam@nokia.com>
12 years agoUpdate text examples to QtQuick 2.0, remove obsolete files
Damian Jansen [Fri, 26 Aug 2011 00:31:39 +0000 (10:31 +1000)]
Update text examples to QtQuick 2.0, remove obsolete files

Change-Id: I7181c3d26e85459597f06bba174885ced40ffe1d
Reviewed-on: http://codereview.qt.nokia.com/3618
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bea Lam <bea.lam@nokia.com>
12 years agoUpdate modelviews examples to QtQuick 2.0
Damian Jansen [Thu, 25 Aug 2011 23:23:28 +0000 (09:23 +1000)]
Update modelviews examples to QtQuick 2.0

Also make abstractitemmodel example compile in 5.0 and
remove obsolete files.

Change-Id: Ic09f3878bb0b070e0f77398599d39952758acb8f
Reviewed-on: http://codereview.qt.nokia.com/3615
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bea Lam <bea.lam@nokia.com>
12 years agoUpdate rssnews, focus and positioners examples to QtQuick 2.0
Damian Jansen [Thu, 25 Aug 2011 05:11:13 +0000 (15:11 +1000)]
Update rssnews, focus and positioners examples to QtQuick 2.0

Change-Id: I187acb734e78552088b85503dd3542e1b1101944
Reviewed-on: http://codereview.qt.nokia.com/3556
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoUpdate calculator, i18n, imageelements examples to QtQuick 2.0
Damian Jansen [Thu, 25 Aug 2011 03:55:54 +0000 (13:55 +1000)]
Update calculator, i18n, imageelements examples to QtQuick 2.0

Change-Id: Ib506f6b1daf431135c6608bdf1c5ea3afe08b213
Reviewed-on: http://codereview.qt.nokia.com/3551
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoUpdate animation examples to QtQuick 2.0 and remove obsolete files.
Damian Jansen [Thu, 25 Aug 2011 02:46:03 +0000 (12:46 +1000)]
Update animation examples to QtQuick 2.0 and remove obsolete files.

Change-Id: If29cf056b37fbc45e29d81dac43414261aa74034
Reviewed-on: http://codereview.qt.nokia.com/3545
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoUpdate toys examples to QtQuick 2.0 and remove obsolete files
Damian Jansen [Wed, 24 Aug 2011 04:51:35 +0000 (14:51 +1000)]
Update toys examples to QtQuick 2.0 and remove obsolete files

Change-Id: I5ca6a459df532a5c551430f3f1029ec961a75233
Reviewed-on: http://codereview.qt.nokia.com/3441
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoDon't emit attached add() and remove() for moved items
Bea Lam [Thu, 1 Sep 2011 03:52:23 +0000 (13:52 +1000)]
Don't emit attached add() and remove() for moved items

Regression from 6fbc4b7e7e5aed8739ca1143e0fc1e38b8c8e17a

Change-Id: I0bcd55548dca1559deea0d66112e7cdeb3da4ed9
Reviewed-on: http://codereview.qt.nokia.com/4023
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoAllow conversion of QObject Module API to QVariant
Chris Adams [Mon, 22 Aug 2011 05:51:28 +0000 (15:51 +1000)]
Allow conversion of QObject Module API to QVariant

This commit adds a conversion codepath for QV8TypeResource to QVariant
where the resource contains a QObject module API.  This allows such a
module API to be used as the "target" in a Connections element.

Task-number: QTBUG-20937
Change-Id: I9214b531968f2e6981a86e643859a97297c6a02a
Reviewed-on: http://codereview.qt.nokia.com/3286
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoAllow reference to signals using 'on' handler syntax.
Michael Brasser [Wed, 31 Aug 2011 02:36:32 +0000 (12:36 +1000)]
Allow reference to signals using 'on' handler syntax.

This will allow APIs like the following:
trigger: mouseArea.onClicked

However, signal handlers will not be callable from QML:
mouseArea.onClicked() //throws exception

Change-Id: I2ef5cb4e1f3ed4814ef590962391e1b14e3f0c43
Reviewed-on: http://codereview.qt.nokia.com/3683
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
12 years agoRemove scheduleLayout() and layoutScheduled
Bea Lam [Tue, 30 Aug 2011 06:02:41 +0000 (16:02 +1000)]
Remove scheduleLayout() and layoutScheduled

No longer necessary since views now call QSGItem::polish() which
does its own layout scheduling and only does layouts when
necessary

Change-Id: I7d265fcf4177344c4ba10600b551a5545284316f
Reviewed-on: http://codereview.qt.nokia.com/3843
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoBatch view changes instead of applying them immediately
Bea Lam [Mon, 29 Aug 2011 05:33:36 +0000 (15:33 +1000)]
Batch view changes instead of applying them immediately

If there are multiple changes to be applied to a view before the next
repaint, collate them using QDeclarativeChangeSet and apply the changes
as a group on the next layout(). (Note that changes to the current index
are applied in sequence as changes are received, since changing it out
of order produces different results.)

Previously, any itemsInserted(), itemsRemoved() and itemsMoved() changes
were immediately applied and items were repositioned immediately. In
this situation if the same indexes changed multiple times between
repaints, this could lead to redundant changes and bugs arising from
multiple changes to the same items.

Functions that will execute differently depending on whether pending
view changes have been applied (e.g. count(), currentIndex(),
highlight()) now call applyPendingChanges() before proceeding to ensure
they are executed on a view that is up to date.

Also, itemsMoved() operations that moved item/s backwards will now
properly move backwards instead of being adjusted to a forward movement
(which was implemented recently with
e2b5681b1adab83555c7307b05f508d796a1152b) since backwards movements can
be implemented more easily with the batched changes which translates
moves into insert/remove actions.

Change-Id: If9b39755898e8d2ed7e4bc61288206d5f1d653fd
Reviewed-on: http://codereview.qt.nokia.com/3697
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoAdd bounding rectangle for rendering images in designer support
Marco Bubke [Wed, 31 Aug 2011 16:29:13 +0000 (18:29 +0200)]
Add bounding rectangle for rendering images in designer support

Elements can be outside the root items bounding rectange. So we compute
the bounding rectangle of an item and its children on the designer side. We
exclude all children which are the designer created.

Change-Id: I3c4f9ca5291c8f65e3670be1fd0900edf449b46f
Reviewed-on: http://codereview.qt.nokia.com/3963
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
12 years agoDebugger: Rename qdeclarativedebug* to qdeclarativeenginedebug*
Kai Koehne [Wed, 31 Aug 2011 07:12:39 +0000 (09:12 +0200)]
Debugger: Rename qdeclarativedebug* to qdeclarativeenginedebug*

Change-Id: I0c289bdf555aa317dc12c5dbcff0168ebcc7bd50
Reviewed-on: http://codereview.qt.nokia.com/3935
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
12 years agoRename QDeclarativeEngineDebugServer to ~Service
Kai Koehne [Tue, 30 Aug 2011 15:21:30 +0000 (17:21 +0200)]
Rename QDeclarativeEngineDebugServer to ~Service

And fix the file names/location, too

Change-Id: If2d5ec0896332896ad11af748ec8f75c39e1555c
Reviewed-on: http://codereview.qt.nokia.com/3890
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
12 years agoFix build with Clang
Tor Arne Vestbø [Wed, 31 Aug 2011 11:50:21 +0000 (13:50 +0200)]
Fix build with Clang

We have to qualify calls to baseclass functions in templates. See:

  http://clang.llvm.org/compatibility.html#dep_lookup_bases

Change-Id: If779f1789d269f20a0255d63b1a7d6b9fef0118e
Reviewed-on: http://codereview.qt.nokia.com/3961
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoAutotests: Silence gdb warning about deprecated conversion
Kai Koehne [Wed, 31 Aug 2011 07:05:00 +0000 (09:05 +0200)]
Autotests: Silence gdb warning about deprecated conversion

Fix "warning: deprecated conversion from string constant to ‘char*"

Change-Id: Ie8a4b0caba351e5920cc7d3249ee023bfe7675bc
Reviewed-on: http://codereview.qt.nokia.com/3934
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
12 years agoAdd an abstraction layer for the qml designer
Marco Bubke [Tue, 30 Aug 2011 15:34:39 +0000 (17:34 +0200)]
Add an abstraction layer for the qml designer

The Qml Designer for Qt4 is using private headers but this broke very
often because nobody outside of the designer team was aware of it. This
is an attempt to define a clear interface which the designer is using.

Change-Id: I9ad2db234043da8e787024d3c2d346356bbbef47
Reviewed-on: http://codereview.qt.nokia.com/3608
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
12 years agoAdd #version 120 in more places.
Alan Alpert [Wed, 31 Aug 2011 07:53:38 +0000 (17:53 +1000)]
Add #version 120 in more places.

Desktop GL implementations don't seem bothered, but not all the ES 2
ones could handle it.

Change-Id: I93af18be342d8d418067a54769d69efc87442886
Reviewed-on: http://codereview.qt.nokia.com/3916
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
12 years agoRename PointAttractor x,y to pointX,pointY
Alan Alpert [Tue, 30 Aug 2011 02:58:45 +0000 (12:58 +1000)]
Rename PointAttractor x,y to pointX,pointY

Avoid hiding the Item properties, which still have an effect.

Change-Id: I2449c376fe0f2c769792e4bb7b23899672cce5e1
Reviewed-on: http://codereview.qt.nokia.com/3837
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoAllow initial property values to be defined with QSGLoader
Chris Adams [Wed, 17 Aug 2011 07:46:54 +0000 (17:46 +1000)]
Allow initial property values to be defined with QSGLoader

This commit adds an "active" property to QSGLoader, which can be
used to delay instantiation of the item until the user wishes to
activate the loader.  The property is true by default in order to
maintain compatibility with previous behaviour.

The commit also adds a "setSource(v8object)" function to QSGLoader,
which behaves identically to setSource() property mutator except that
it takes a JavaScript object parameter which defines the initial
property values of the item (in a manner similar to that of
QDeclarativeComponent::createObject()).

Task-number: QTBUG-17009
Change-Id: Ifd824b518b60ef7aa3017c384835abb552e65cf1
Reviewed-on: http://codereview.qt.nokia.com/3364
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
12 years agosetting only colorVariation now works
Alan Alpert [Mon, 29 Aug 2011 08:49:24 +0000 (18:49 +1000)]
setting only colorVariation now works

Wasn't realizing it needed colored shaders for it.

Change-Id: I9d5693d8f8f470d3239339d4457c576f5b40fe3f
Reviewed-on: http://codereview.qt.nokia.com/3723
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
12 years agoQtDeclarative does not use libQtSvg
Martin Jones [Wed, 31 Aug 2011 05:54:54 +0000 (15:54 +1000)]
QtDeclarative does not use libQtSvg

Change-Id: Iac81489c651e5252a7966eaff462d5fd37bf37d3
Reviewed-on: http://codereview.qt.nokia.com/3910
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoSupport QT_TRID_NOOP in ListElement.
Michael Brasser [Wed, 31 Aug 2011 04:07:32 +0000 (14:07 +1000)]
Support QT_TRID_NOOP in ListElement.

Task-number: QTBUG-21070
Change-Id: I91f68467ed96c89fe18726372348ebe809099f60
Reviewed-on: http://codereview.qt.nokia.com/3906
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Charles Yin <charles.yin@nokia.com>
12 years agoCustom Particle now supplies default code
Alan Alpert [Tue, 30 Aug 2011 04:35:09 +0000 (14:35 +1000)]
Custom Particle now supplies default code

Attributes and a sample function are now prepended to the vertex shader,
allowing many to become simple again.

Change-Id: Ie1fbc864bd0d58647cb67994b96c2cb88db92f10
Reviewed-on: http://codereview.qt.nokia.com/3839
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoAdd enums support to QObject module APIs
Chris Adams [Mon, 22 Aug 2011 07:01:04 +0000 (17:01 +1000)]
Add enums support to QObject module APIs

This commit adds support for retrieving enum values from QObject
module APIs.

Task-number: QTBUG-21033
Task-number: QTBUG-21056
Change-Id: Ib2bd107f3f5905e2d2d35f8a20c55045ef9bb322
Reviewed-on: http://codereview.qt.nokia.com/3291
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
12 years agoDo not deliver hover events when item is not visible
Caio Marcelo de Oliveira Filho [Mon, 29 Aug 2011 13:11:31 +0000 (10:11 -0300)]
Do not deliver hover events when item is not visible

This patch change the code to also skip invisible items (it was
done for disabled already) when deciding whether or not deliver the
hover events to an item. The rationale here is to follow the same
rule as the other mouse events.

Change-Id: If0fe6d64d1f7cfb8679ce11edda7c02dc3783f9b
Reviewed-on: http://codereview.qt.nokia.com/3861
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoFix extra hover enter events being sent by QSGCanvas
Caio Marcelo de Oliveira Filho [Mon, 29 Aug 2011 13:08:45 +0000 (10:08 -0300)]
Fix extra hover enter events being sent by QSGCanvas

This fixes two issues: when one item is entered it is getting the
enter event twice. When we are moving from two items that share the
same parent, the parent is getting enter event -- which shouldn't
happen.

Change-Id: If0fe6d64d1f7cfb8679ce11edda7c02dc3783f9a
Reviewed-on: http://codereview.qt.nokia.com/3860
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
12 years agoFix the directory cache for case insensitive file systems.
Roberto Raggi [Tue, 30 Aug 2011 09:45:36 +0000 (11:45 +0200)]
Fix the directory cache for case insensitive file systems.

Authored-by: Martin Jones
Change-Id: Iebedfa077487f4fa1cab6d159cc4bd1e7b0b7184
Reviewed-on: http://codereview.qt.nokia.com/3870
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoFix diagnostic messages.
Roberto Raggi [Mon, 29 Aug 2011 12:10:12 +0000 (14:10 +0200)]
Fix diagnostic messages.

Change-Id: Id06ff4237129ef5525032c9a2510e4316be52ae2
Reviewed-on: http://codereview.qt.nokia.com/3802
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoFix merge errors introduced while rebasing.
Roberto Raggi [Mon, 29 Aug 2011 09:52:17 +0000 (11:52 +0200)]
Fix merge errors introduced while rebasing.

Change-Id: I14973b94f404f9e4fe06b192ef177f01e0f5ef01
Reviewed-on: http://codereview.qt.nokia.com/3801
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoFix the tst_qdeclarativedebug auto test.
Roberto Raggi [Thu, 25 Aug 2011 07:21:28 +0000 (09:21 +0200)]
Fix the tst_qdeclarativedebug auto test.

The creation order in QML is not defined.

Change-Id: I4bc3d9e56e32a0c907cdaef9994ae66c3869a4ea
Reviewed-on: http://codereview.qt.nokia.com/3800
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoFix the search of QML types.
Roberto Raggi [Tue, 23 Aug 2011 16:17:51 +0000 (18:17 +0200)]
Fix the search of QML types.

Stop iterating the multi hash as soon as we find an element with
a different key.

Change-Id: Ie474708229b4040e66b17ceffc5be787856bc905
Reviewed-on: http://codereview.qt.nokia.com/3799
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoFix wrong assertion in StringRef::load.
Roberto Raggi [Tue, 23 Aug 2011 14:55:32 +0000 (16:55 +0200)]
Fix wrong assertion in StringRef::load.

Change-Id: Ib39804b87027bda8cc6694b26e98e18bbc3a159f
Reviewed-on: http://codereview.qt.nokia.com/3798
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoMove all QML file parsing into the QDeclarativeScript namespace
Aaron Kennedy [Tue, 23 Aug 2011 01:41:50 +0000 (11:41 +1000)]
Move all QML file parsing into the QDeclarativeScript namespace

Change-Id: I5969686a796cbfb2eeb3729014df7f01e51b0620
Reviewed-on: http://codereview.qt.nokia.com/3797
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
12 years agoCollect the source locations of the single and multiline comments.
Roberto Raggi [Mon, 22 Aug 2011 14:36:04 +0000 (16:36 +0200)]
Collect the source locations of the single and multiline comments.

Change-Id: I7a8f2eec7a45f7a9a1212680f477cc5edd2aaad5
Reviewed-on: http://codereview.qt.nokia.com/3796
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoFix the qmldir parser diagnostic messages.
Roberto Raggi [Mon, 22 Aug 2011 13:27:04 +0000 (15:27 +0200)]
Fix the qmldir parser diagnostic messages.

Change-Id: I752d5cf334faa5761007f553caf49e64d0e1f411
Reviewed-on: http://codereview.qt.nokia.com/3795
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoUpdate the tst_qdeclarativelanguage::errors() auto test.
Roberto Raggi [Mon, 22 Aug 2011 13:26:10 +0000 (15:26 +0200)]
Update the tst_qdeclarativelanguage::errors() auto test.

Change-Id: I953eecefbf177c7d415b64814cea5ca2611787c3
Reviewed-on: http://codereview.qt.nokia.com/3794
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoFix lookup of non scriptable default properties.
Roberto Raggi [Mon, 22 Aug 2011 11:46:33 +0000 (13:46 +0200)]
Fix lookup of non scriptable default properties.

Change-Id: I027169a54dc0041212d38aefc99164930c31d2b2
Reviewed-on: http://codereview.qt.nokia.com/3793
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoFix property lookup in QDeclarativePropertyCache::create.
Roberto Raggi [Thu, 18 Aug 2011 14:36:10 +0000 (16:36 +0200)]
Fix property lookup in QDeclarativePropertyCache::create.

Search for the property in the current meta object.

Change-Id: I085f4285298ae952d9c50ee93c47b4009dbe900f
Reviewed-on: http://codereview.qt.nokia.com/3792
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
12 years agoFix compilation.
Roberto Raggi [Thu, 18 Aug 2011 14:35:56 +0000 (16:35 +0200)]
Fix compilation.

Change-Id: I75433c3c716b6df33b75d32805fcca822f49a202
Reviewed-on: http://codereview.qt.nokia.com/3791
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>