Frederik Gladhorn [Sat, 21 Apr 2012 02:45:58 +0000 (04:45 +0200)]
Improve test to use actual double click timeout.
I'll keep the function marked as skip since I have no clue if this
is even remotely connected to the issues it was having.
Change-Id: I04b2a4f61321553804d29ef076178ea7c63b0deb
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Jerome Pasion [Tue, 17 Apr 2012 13:24:22 +0000 (15:24 +0200)]
Doc: Changed the title for QtQuick articles
- Removed "QML" from the title
- Fixed the links to the articles
- Removed extra references to QML
Change-Id: I47e0871d9362be9625ada61d27123b1605d55a94
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Alan Alpert [Wed, 18 Apr 2012 04:21:46 +0000 (14:21 +1000)]
Doc Fix
More emphasis on what imports are needed for specialty elements.
Change-Id: Ia24ac97bb77ed57c313a5120b0fbd02b6fcaa4a8
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Olivier Goffart [Fri, 20 Apr 2012 17:55:49 +0000 (19:55 +0200)]
qMalloc, qFree, qRealloc, qMemCopy, qMemSet are deprecated
Use the stdlib version directly instead
Change-Id: Ifc600f6c418b395c4ada9e5beb207ad3985575e3
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Andrew den Exter [Fri, 20 Apr 2012 05:52:41 +0000 (15:52 +1000)]
Reduce memory usage of QQuickPath for simple paths.
For a single segment line path we can get correct results by
interpolating across just two points, so there no need to allocate
the comparatively large point cache required for more complex paths.
This also correct a normally small interpolation error caused by
including the terminal point in the number of intervals.
Change-Id: I564c3c012b6822831251276951603fca8544a356
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Bea Lam [Fri, 20 Apr 2012 07:02:38 +0000 (17:02 +1000)]
Only run populate for items in model at creation
Don't run for items added in Component.onCompleted.
Change-Id: I58745ab989efae168d036875cb2fb88e3e2db0c3
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Friedemann Kleint [Thu, 19 Apr 2012 15:24:08 +0000 (17:24 +0200)]
QtDeclarative: Fix compiler warnings.
- QString from ASCII conversion, remove global-static QString
variable from class.
- Signed/unsigned comparison.
- Unused variable.
Change-Id: I4ea3e72da85ba7ed329196d39085d7bba8bfa389
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Michael Brasser [Mon, 2 Apr 2012 00:02:28 +0000 (10:02 +1000)]
Also check notifier endpoints when checking whether a signal is connected.
This is required for the QQmlBoundSignal optimizations.
Change-Id: I63540b96cd7d4523ec49973a2540054c83d82b12
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Michael Brasser [Mon, 23 Apr 2012 00:17:57 +0000 (10:17 +1000)]
Support and use parameters in QQmlNotifierEndpoint.
Allow QQmlNotifierEndpoint to support signals
with parameters. Update QQmlBoundSignal to use
this support.
Change-Id: Ie2a245b39283b0b66d66bd2350e8bc85fe519bb5
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Chris Adams [Thu, 19 Apr 2012 07:30:59 +0000 (17:30 +1000)]
Add some component path canonicalization tests
Previously, no unit test existed to ensure that url canonicalization
worked correctly, which could result in two import statements using
relative paths to the same actual component triggering two separate
types being generated.
This commit adds a unit test with various relative-addressing and both
static and dynamic imports, to enforce type-consistency.
Change-Id: I7772e3c531069322d5fa44063cbf57a758ed3710
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
Jason McDonald [Fri, 20 Apr 2012 11:04:05 +0000 (21:04 +1000)]
Re-enable QQuickPixmapCache test on most platforms.
This test fails unstably on Ubuntu 10.04 and passes on all other CI
platforms, so only disbale it on Ubuntu 10.04.
Task-number: QTBUG-25307
Change-Id: Iae5d401e1c7b2398abfd80abc7827df27a84e63b
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Lars Knoll [Fri, 20 Apr 2012 09:55:08 +0000 (11:55 +0200)]
QtQml doesn't depend on xmlpatterns anymore
Change-Id: Id6bd03f26e0e90ecfc485d3701c3f46f78539f7b
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Kai Koehne [Fri, 20 Apr 2012 09:53:45 +0000 (11:53 +0200)]
Debugger: Improve autotest output on failure
Change-Id: Ia463b198b5d6dac8e480d141412cb4475e54d204
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Tobias Hunger [Thu, 19 Apr 2012 08:08:10 +0000 (10:08 +0200)]
Fix warnings about non-virtual destructors
Change-Id: Ief63ebe0ab3622b8858e23fdfb773c6b283a9c14
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Andrew den Exter [Fri, 20 Apr 2012 06:25:33 +0000 (16:25 +1000)]
Remove uninitialized variable.
Relic from a prospective change to defer layout of text in more
circumstances.
Change-Id: I75d14e8cb01b86ab36ddbf58da99ba1cde14d801
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Laszlo Agocs [Thu, 19 Apr 2012 08:31:14 +0000 (11:31 +0300)]
Avoid losing mouse events when the event loop gets spinned
The touchMouseId value has to be updated to its potential new value
before delivering the events.
Change-Id: I47ac5b3aad63293e19985b7b242b56db258fe786
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Charles Yin [Thu, 19 Apr 2012 03:50:39 +0000 (13:50 +1000)]
Disable local storage if the standard data location is empty
Change-Id: I05ea7fa9521c807099b39e610f965a331e538f6e
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Andrew den Exter [Fri, 20 Apr 2012 01:40:40 +0000 (11:40 +1000)]
Fix eliding when text width is reset by an implicitWidth change.
After emitting implicit size changed signals, reevaluate any conditions
that were dependent on the validity of the item dimensions.
Change-Id: Ie4ee0c87a22cf82752c207c69d426056c36ede67
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Andrew den Exter [Fri, 20 Apr 2012 04:04:42 +0000 (14:04 +1000)]
Add a virtual destructor to QQuickVisualDataGroupEmitter.
Not strictly necessary since pointers to that type are not used to
destroy objects implementing the interface. But there's no harm and
it will keep well meaning static analysis tools happy.
Task-number: QTBUG-25286
Change-Id: I84dd59798d08566f34bdfe0f3774dfcf5a8a96e2
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Bea Lam [Thu, 19 Apr 2012 06:56:32 +0000 (16:56 +1000)]
Paint TextInput when it is reparented
Wasn't being repainted if it was moved off then back into view as part
of a VisualItemModel with a ListView.
Task-number: QTBUG-24731
Change-Id: I4ba8035709d3e889fb3f0fe82ef0c0523a39ead8
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Yann Bodson [Wed, 18 Apr 2012 04:41:14 +0000 (14:41 +1000)]
Improve examples documentation
Add more details and snippets to the examples for text and
imageelements.
Change-Id: If0b20a0dca1778a8a4cc0ebf1e43017bdce839ec
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Bea Lam [Mon, 16 Apr 2012 07:03:13 +0000 (17:03 +1000)]
Clean up test
Change-Id: I750d059492c74fbdcd8d61ec3268ba10dcf0466b
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Alan Alpert [Wed, 18 Apr 2012 08:07:13 +0000 (18:07 +1000)]
Improve example documentation
Add more detail and snippets to the examples for shadereffects and
positioners.
Change-Id: I62a257289cbfb6c53ecc092ac898d923f0058248
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Matthew Vogt [Fri, 20 Apr 2012 01:19:11 +0000 (11:19 +1000)]
Move data file to correct location
Change-Id: Iaf5363f6bd0a7983dc937e427131f6537a19b1c3
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Michael Brasser [Thu, 5 Apr 2012 03:30:00 +0000 (13:30 +1000)]
Provide receivers count from QQmlData.
Change-Id: I70b06507158797df3083dc23a119935497aa19f4
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Girish Ramakrishnan [Wed, 18 Apr 2012 19:16:21 +0000 (12:16 -0700)]
Use QInputMethod::isVisible instead of QInputMethod::visible
QInputMethod::visible will be removed in qtbase.
Change-Id: I16ffbe56d55a62ae6a905e3cfdab8ad245d24aa0
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Michael Brasser [Thu, 19 Apr 2012 23:27:01 +0000 (09:27 +1000)]
Use QUrl constructor directly.
setEncodedUrl is deprecated, and no longer required as the new QUrl
makes this behavior default. This is a partial revert of
3aa53b8bc383ebcdf8dc922b2670170ec012949f.
Change-Id: I14f29cbe2a2e2cd9c41f7afc92b1cb66b53996bb
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
Martin Jones [Wed, 18 Apr 2012 08:25:16 +0000 (18:25 +1000)]
Don't initiate delegate incubation in delegate creation frames.
If we've just instantiated a synchronous delegate, don't schedule
a buffered delegate until the next frame.
Change-Id: Id269457cb74a7900e4405022c15148fd2a3dc180
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Friedemann Kleint [Thu, 19 Apr 2012 15:31:32 +0000 (17:31 +0200)]
QtDeclarative: No longer use QDeclarative compatibility defines.
Change-Id: Icbd9777cf1d978468c8023712ed90cd3c7dda56f
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Andreas Holzammer [Thu, 19 Apr 2012 13:59:57 +0000 (15:59 +0200)]
Compile fix if QT_NO_CLIPBOARD defined
Change-Id: Ic287a89193c98b2405032fe5859782286d4528d0
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Girish Ramakrishnan [Tue, 17 Apr 2012 01:04:52 +0000 (18:04 -0700)]
include QWindowSystemInterface explicity when needed
QtTest will not include QWindowSystemInterface anymore. See
https://codereview.qt-project.org/#change,23440.
Change-Id: Icad9f04fa748ad938925716b0012bc4cf1b3f154
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
vertries [Tue, 17 Apr 2012 13:03:51 +0000 (15:03 +0200)]
Doc: Moved article from Qt QML to Qt Quick.
-about the UI, not QML.
Change-Id: Ib4a3195e763c3b9d86ff17f5581a4aaa4f89243d
Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
Jerome Pasion [Tue, 17 Apr 2012 08:20:33 +0000 (10:20 +0200)]
Doc: Adding list of JavaScript functions in QML.
-Added a link to the ECMA-262 standard
Change-Id: I0b3173f93bf947908bf9d39d207468d2b9f0cbd7
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Charles Yin [Wed, 21 Mar 2012 06:07:25 +0000 (16:07 +1000)]
Call onreadystatechange() when new data available during loading
Task-number: QTBUG-21459
Change-Id: I84e11cbf9ade361d5d578c8871491e631f8e4ea4
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Samuel Rødal [Thu, 19 Apr 2012 08:49:12 +0000 (10:49 +0200)]
Delay rendering until canvas is exposed.
Prevents warnings about swapBuffers() being called with non-exposed
window on xcb.
Change-Id: Ib43fd588a7b62e7aaf14f2caddfa498fdced283a
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Simjees Abraham [Wed, 18 Apr 2012 14:13:50 +0000 (16:13 +0200)]
Debugger: Display selected item name in inspector
Changes made to Inspect Tool such that the selected item's name is displayed
during selection and then on click of the selected item. The name is displayed
for 1.5 seconds.
Change-Id: Id71c82775c2d55eeda969b8a998e130d2f5ff29d
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Martin Jones [Thu, 19 Apr 2012 08:07:32 +0000 (18:07 +1000)]
Make QML work with the new QUrl implementation.
Change-Id: Ie7a41670e467108ed68b67deb4987936465094a0
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Simjees Abraham [Tue, 17 Apr 2012 13:28:23 +0000 (15:28 +0200)]
Debugger: Changes made for selection using Inspect Tool
The selected item is shown in black transparent background.
Change-Id: Ifc9d2892cc000041df6d9585f5c5adcca07abfb5
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Adriano Rezende [Sun, 26 Feb 2012 16:26:53 +0000 (17:26 +0100)]
Add contains method to QQuickItem public API
This method can be overwritten in order to provide fine grained control
over the mouse events handled by the item.
Change-Id: I23cb61958d3ac0b2f5091c47fa9e0ed07dc5e5d0
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Andrew den Exter [Wed, 18 Apr 2012 07:20:24 +0000 (17:20 +1000)]
Ensure the cursor delegate position is correct when wrapping.
When inserting text into a TextEdit with implicit width and wrapping
the cursor delegate position has to be updated after the width is
expanded to the implicit width otherwise it will be positioned in a
wrapped location.
Change-Id: Ibcb709ec1b4f6827ea8ae919f2e0c932c7372869
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Charles Yin [Wed, 18 Apr 2012 11:01:57 +0000 (21:01 +1000)]
Clean up qmltest code
1. Remove qmlviewer related code from TestCase.qml
2. util.wrapper is no longer used
Change-Id: I17d9198a7871762da07a790700d69504b8226c48
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Andrew den Exter [Tue, 10 Apr 2012 05:06:48 +0000 (15:06 +1000)]
Don't create glyphs for truncated text.
Instead of positioning truncated lines far out of the way where they
won't be seen, simply skip them when creating the glyph node.
Change-Id: I83bd8f76619d822fb22ec2ebd8c1e45c45b8b990
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Chris Adams [Fri, 30 Mar 2012 07:45:38 +0000 (17:45 +1000)]
Improve QML performance documentation
This commit documents several memory-related considerations which
could be of importance to application developers.
It also adds a short section on the optimized binding compiler.
Change-Id: I737fc70c1b686867cd938dcb042466c8788de7e4
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Michael Brasser [Tue, 17 Apr 2012 00:04:57 +0000 (10:04 +1000)]
Document AnchorChanges and ParentChange for QtQuick 2.
Copied documentation from QtQuick1 module.
Change-Id: I871f313b1b24e8b66db04c423bef190274547dfa
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Gunnar Sletta [Wed, 18 Apr 2012 06:29:56 +0000 (08:29 +0200)]
Add a note in the docs about FBO multisampling
Change-Id: I4c0b522ce937e681a9208cc94a1265f6b10ebcd3
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
Aurindam Jana [Tue, 17 Apr 2012 11:59:33 +0000 (13:59 +0200)]
QQmlEngineDebugService: Object creation
Send parent debug id when a new object is created.
Change-Id: I8e3871fee91f0d24c44b0d458d5b273f9f527b11
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Donald Carr [Tue, 17 Apr 2012 05:23:21 +0000 (05:23 +0000)]
Enabled widget free compilation of QtQuick
There is no hard dependency of QtQuick on QWidget. This change makes the
minor adjustments required to remove the build dependency altogether. This
patch follows the path of least resistance bypassing any elements with a
dependency on the legacy QWidget functionality.
Change-Id: Ie3f47d3b4f60a1460dbb5d76a494a2c329469cc0
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Matthew Vogt [Wed, 18 Apr 2012 01:18:57 +0000 (11:18 +1000)]
Split qquicklistmodel test into two parts
This long-running test was potentially being terminated by the test
framework for simply exceeding the maximum run time.
Change-Id: I7e1be44f25885ae869f05acbce3c0fb1c05f76a6
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Lars Knoll [Tue, 17 Apr 2012 14:35:19 +0000 (16:35 +0200)]
Merge remote-tracking branch 'origin/api_changes'
Change-Id: I39905acde16ba6bb0ba39401cb73082a73dd9167
Charles Yin [Tue, 17 Apr 2012 06:47:33 +0000 (16:47 +1000)]
Set rootItem'ownership as CppOwnerShip
rootItem should not be deleted until the QQuickCanvas itself has been deleted.
Set the rootItem's object ownership to CppOwnerShip can prevent it being destroyed
by javascript destroy() method or v8 garbage collection.
Change-Id: I7d83fec8ffcb8062d143b1b050a38368a2af800f
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com>
Aurindam Jana [Tue, 17 Apr 2012 09:00:18 +0000 (11:00 +0200)]
QV8DebugService: v8::AfterCompile Events
Do not send v8::AfterCompile events. This speeds up the
debugger.
Change-Id: I84f5d90e24878af42d514e5d26c9e051502605f6
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Jerome Pasion [Tue, 18 Oct 2011 08:31:10 +0000 (10:31 +0200)]
Doc: Unifying directories for the configuration files.
-Added information that the qch version is for Qt Quick 2.
Change-Id: I8d1a090534c3078b30066efc5a10cded358a80b8
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Andrew den Exter [Tue, 17 Apr 2012 07:28:50 +0000 (17:28 +1000)]
Don't crash when calculating the implicit width of truncated lines.
Remember to call beginLayout() on the QTextLayout before creating
lines or the layout data won't be allocated.
Change-Id: Ic344ca376fc25e38c50078135deb02dee3afc4f1
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Yann Bodson [Tue, 17 Apr 2012 04:24:06 +0000 (14:24 +1000)]
Improve StyledText tests
Extra tests for anchors and invalid input.
Task-number: QTBUG-25134
Change-Id: Ib465e0aba2fc5671c7f044d1bb655247d562d1f1
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Charles Yin [Tue, 17 Apr 2012 07:39:42 +0000 (17:39 +1000)]
Fix broken stockchart demo
Change-Id: Ie0118579cc57e9406044d763e699cb1aa66bd6cd
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Bea Lam [Tue, 17 Apr 2012 05:54:39 +0000 (15:54 +1000)]
Use bit fields
Change-Id: Ie04d59642117f00091e8b28ae4fb07df7e226f8c
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Bea Lam [Tue, 20 Mar 2012 01:37:10 +0000 (11:37 +1000)]
Vertical layout direction for ListView and GridView
Provide verticalLayoutDirection property with TopToBottom
and BottomToTop values.
Change-Id: If6f0da5dd4735036162868d391852a661854de5b
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Girish Ramakrishnan [Tue, 17 Apr 2012 01:00:58 +0000 (18:00 -0700)]
Compile fix for qqmldebugservice test
Change-Id: I8efd3686521c3221be79f5bbf5e28a8ef2bb4e19
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Charles Yin [Fri, 16 Mar 2012 13:15:00 +0000 (23:15 +1000)]
Fine-tune animation's pause()/resume() behaviors
Only allow pause/resume to be used while running, and when stop the
animation reset the paused value to false.
Change-Id: Ia465045006478936146356f9e2e0632614c6b527
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Andrew den Exter [Mon, 26 Mar 2012 05:54:16 +0000 (15:54 +1000)]
Fix Text baselineOffset caclulations.
Update the baselineOffset when short cutting layout due to an empty
text property. And allow alterations to the baseline due to images,
font scaling and custom layouts when doing a layout.
Task-number: QTBUG-24303
Change-Id: I5a31a6108cded490fef8b0674e15558ea4e22d6b
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Girish Ramakrishnan [Mon, 16 Apr 2012 14:14:00 +0000 (07:14 -0700)]
Don't use QWindow::visible
The deprecated method (in favor of QWindow::isVisible) is
going away.
Change-Id: I1ead05f8d74800a29c315ca4ca74577e89314882
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Simjees Abraham [Mon, 16 Apr 2012 13:14:12 +0000 (15:14 +0200)]
Debugger: Code cleanup for Inspect Tool
Code cleanup done for Inspect Tool. Member variables removed which were
not required.
Change-Id: I74ab43c4e8bf39d00a5428bb6219653b7887c46d
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Simjees Abraham [Mon, 16 Apr 2012 09:33:41 +0000 (11:33 +0200)]
QPointer used instead of QWeakPointer
Correctly used QPointer instead of QWeakPointer in QuickViewInspector
and Highlight classes.
Change-Id: I579bd148e71803b029d7a036cdcb7255740dbd91
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Friedemann Kleint [Mon, 16 Apr 2012 08:36:03 +0000 (10:36 +0200)]
Fix exports for the new Particles library.
Change-Id: I3163c2bd00ad0d047f7fe2daa783e12071dd95b4
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Kent Hansen [Fri, 23 Mar 2012 17:14:29 +0000 (18:14 +0100)]
Add QJson support to QV8Engine
Make QV8Engine perform direct conversion between JavaScript values
and QJson{Value,Object,Array}.
This implementation always makes a deep clone of the
QJson{Object,Array} when converting to JS; it might make sense to add
a lazy conversion scheme for dealing with large objects.
Change-Id: Id0b65891a19515ce22f1e51fa8a28d9f3e595271
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Reviewed-by: Jamey Hicks <jamey.hicks@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Kai Koehne [Fri, 13 Apr 2012 12:32:41 +0000 (14:32 +0200)]
QmlDebug: Fix qmake warning about declarative_debug
declarative_debug has been deprecated, and replaced by qml_debug.
In this case we can anyway use the define directly to avoid the warning
on startup.
Change-Id: Ia5ce1ecf698d2232ff46533822372f42db0825bd
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
Martin Jones [Mon, 16 Apr 2012 02:43:49 +0000 (12:43 +1000)]
Be more explicit regarding the Locale object creation.
Change-Id: I6096c5919415b51b44f6e502da48b07f6de4d623
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Charles Yin [Fri, 16 Mar 2012 14:26:58 +0000 (00:26 +1000)]
Add a new running property to QQuickTransition
This read only property can be used to track the transition running
state. As all animation items inside a Transition item are just
animation defination templetes, so their running properties won't be
updated during the transition animations running, which makes it
hard to know the current running state of a transition animation.
Change-Id: If7fc0616ba384abc6bf2da67c7c639430c3d8fb9
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Jason McDonald [Fri, 13 Apr 2012 11:50:30 +0000 (21:50 +1000)]
Add bug numbers for insignificant tests.
Change-Id: Ic68f722e27edab52d68742cc45efa69d86ad4f3b
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Matthew Vogt [Thu, 29 Mar 2012 23:09:51 +0000 (09:09 +1000)]
Add support for variant properties in V4
Support initialization of variant properties in V4. Variants can
be set to contain basic types in V4, but we can't extract data from
them since they may contain data types that V4 does not comprehend.
Task-number: QTBUG-25022
Change-Id: I1935d77b50c5a3481c4c8ddd86b9d3d970571217
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Matthew Vogt [Wed, 11 Apr 2012 06:54:33 +0000 (16:54 +1000)]
Extract Particles code to an independent library
QtQuick clients that do not use particles features should not have
to load these classes.
Task-number: QTBUG-25178
Change-Id: Ib15f7655dc4d821595e06f9160d2770375279027
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
Girish Ramakrishnan [Fri, 13 Apr 2012 20:18:25 +0000 (13:18 -0700)]
Don't use QWindow::move
It's deprecated. Use QWindow::setPos instead.
Change-Id: I16694d27eb583d18c9dca3ee066dbfddab1efe69
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Girish Ramakrishnan [Fri, 13 Apr 2012 20:09:28 +0000 (13:09 -0700)]
Don't use QWindow::visible() since it's deprecated
Use QWindow::isVisible() instead.
Change-Id: I7dcd70e69a070d66f97f300cc292c1bfc51cf09c
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Simjees Abraham [Fri, 13 Apr 2012 08:51:06 +0000 (10:51 +0200)]
Debugger: Fix bug in Inspect Tool
Changes made such that the reparenting of SelectionHighlight and
HoverHighlight is not done. Now the overlay remains the parent for
both.
Reparenting of SelectionHighlight and HoverHighlight created
issues when selection was done on QML lists. Even the highlight items
were getting added into the lists. This fixes the issue.
Change-Id: I116780408d62d2b3da0a17a92e11d6c4f63dd3dc
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Gunnar Sletta [Fri, 13 Apr 2012 13:46:47 +0000 (15:46 +0200)]
Fix broken wakeup() in threaded renderloop.
It is cruicial that the sync handshake between GUI and render
does not get interrupted. If it does, the sync will happen with
the GUI unlocked which leads to crashes. When the sync event
comes through to the GUI afterwards the GUI will block waiting
while the renderer is most likely already done with the sync,
causing GUI to wait indefinitely.
Change-Id: I00bf0c36088510609a9e6f4d0649b9aaeefcd241
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Alan Alpert [Tue, 3 Apr 2012 03:13:49 +0000 (13:13 +1000)]
Extra tests for ShaderEffect and CustomParticle
Change-Id: Ieafa97f1f11337c8beac89a05fc5b5706ba6c215
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
Rohan McGovern [Fri, 13 Apr 2012 06:19:21 +0000 (16:19 +1000)]
test: marked tst_qv8profilerservice as insignificant on mac
This autotest has repeatedly given different results on consecutive test
runs. It seems to fail about 5% of the time in CI.
Task-number: QTBUG-25288
Change-Id: If7e8675521f6270877f514b7de81c926606cf232
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
Andrew den Exter [Wed, 11 Apr 2012 06:22:52 +0000 (16:22 +1000)]
Don't ignore model changes when the ListView scroll position changes.
If there are pending changes when the ListView viewport changes then
do a full layout instead of a refill. Likewise for GridView and when
animations finish or the cacheBuffer size changes.
Change-Id: I57a2b01fee5729381558af366dad24ba26c223ef
Reviewed-by: Bea Lam <bea.lam@nokia.com>
Bea Lam [Mon, 26 Mar 2012 01:56:04 +0000 (11:56 +1000)]
Measure offsets by rows instead of pixels
Will make it easier to test multiple flows and layout directions.
Change-Id: I33cabb650f65a2fd2932d23d501bf250d71ef80d
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Hannu Lyytinen [Wed, 11 Apr 2012 20:01:13 +0000 (23:01 +0300)]
Export all symbols on QSGDefaultRenderer.
Allow custom scene graph renderers to be based on QSGDefaultRenderer.
Change-Id: I67ec20b03abae34d0b0324f2e2bd8063322c14b7
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Hannu Lyytinen [Wed, 11 Apr 2012 20:08:19 +0000 (23:08 +0300)]
Make device specific projection matrix setter virtual.
Allow custom scene graph renderers to set the device specific projection
matrix in their own way. This is needed for the KMS QPA platform, where
the Y coordinate of the screen gets inverted (see discussion at
http://lists.freedesktop.org/archives/wayland-devel/2012-March/
002506.html).
Change-Id: I08f3cd4b829e5b583fe96a9dfd67aa8d23a11b6b
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Pekka Vuorela [Wed, 25 Jan 2012 12:15:29 +0000 (14:15 +0200)]
QQuickTextEdit to trigger input method updates on selectAll()
Change-Id: I8642eca0e584b811308b73817e7decf2f392f1b5
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Jerome Pasion [Tue, 27 Mar 2012 13:20:42 +0000 (15:20 +0200)]
Doc: Fixing the Qt QML module page.
Change-Id: I0efffbab650423a78de437459c9060594f895f37
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Michael Brasser [Wed, 26 Oct 2011 03:41:41 +0000 (13:41 +1000)]
Begin documenting QML's JS environment.
Provide a basic overview of QML's JavaScript host environment
that can be expanded as needed.
Change-Id: I1f178a9de26bd3ea6f5707821518419f76ab279d
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Thiago Macieira [Thu, 20 Oct 2011 19:22:58 +0000 (21:22 +0200)]
Silence warning with ICC about change of signal in integer conversion
Change-Id: I7a9bc7de580dd37005d842d0ff5a000ba16f7c20
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Thiago Macieira [Thu, 20 Oct 2011 19:22:06 +0000 (21:22 +0200)]
Add missing #include <stdlib.h>
rand, malloc and free are defined in that header. Always include your
headers.
Change-Id: Iac052646617e0d038bc4a04709f32384d5f2e9e8
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Thiago Macieira [Wed, 11 Apr 2012 17:05:32 +0000 (14:05 -0300)]
Update test after QUrl minor behaviour change
Changes required:
- Uppercase the hex in percent-encodings
- The tolerant decoder treats all % as broken if any one is broken
(Input "%2B50%" is rendered now "%252B50%25", where previously it
was "%2B50%25)
The extra test is just so we use QString first. If the test fails, we
get a nicer output from QtTest, instead of the hex dump it uses for
QByteArray.
Change-Id: I4c5cbfa3be962c648b50a69dc8bc3c4acc551e62
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Thiago Macieira [Wed, 11 Apr 2012 18:57:06 +0000 (15:57 -0300)]
Stop stuffing the URL "<Unknown File>" in QML errors
QQmlError already knows how to deal with source scripts with no URL
and it will use "<Unknown File>" when converting to a string.
QUrl in Qt 5 leaves the "<" and ">" characters encoded, which means we
ended up getting warnings about "%3CUnknown File%3E", which isn't
nice.
Change-Id: I504604fa37bb734549048432aaf9db3b1fa568d2
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Alan Alpert [Mon, 2 Apr 2012 01:34:50 +0000 (11:34 +1000)]
Get SpriteGoal and GroupGoal tests running again
Missing from particles.pro, and needed quick-private removed from their
pro files. Also updated to match new sprite API, presumably these were
missed because they weren't running before.
Change-Id: I9be2d7f2b0bacc32c26829d40e91e8907c184906
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Alan Alpert [Wed, 11 Apr 2012 06:37:43 +0000 (16:37 +1000)]
Move doc pages into subfolders
Change-Id: I611d0a4a069ac94a28ab2d264bcaa38347715909
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Simjees Abraham [Wed, 11 Apr 2012 09:21:28 +0000 (11:21 +0200)]
Debugger: Fix bugs in inspection tool
Incorrect display of hover and selection highlight for child items
having rotation and a different transform origin corrected.
Change-Id: Id25c5bf52b5c1abc3f98ac6bc90d89262cc4f2cd
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Lars Knoll [Wed, 11 Apr 2012 12:56:22 +0000 (14:56 +0200)]
Merge remote-tracking branch 'origin/master' into api_changes
Conflicts:
src/qml/debugger/qqmlprofilerservice_p.h
src/qml/qml/qqmlboundsignal.cpp
src/qml/qml/v4/qv4bindings.cpp
src/quick/items/qquickshadereffect.cpp
src/quick/particles/qquickcustomparticle.cpp
src/quick/qtquick2.cpp
Change-Id: Ia9c6517035ae912fa75e77473a452bd3383def56
Simjees Abraham [Wed, 11 Apr 2012 10:56:25 +0000 (12:56 +0200)]
Debugger: Inspect tool - changes made to highlight on selection
Changes made for the display of highlight on selection such that the
highlight is more prominent.
Change-Id: Iaf06bd04095be7b25881681e3f81c0fbf87df205
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Matthew Vogt [Tue, 10 Apr 2012 07:12:58 +0000 (17:12 +1000)]
Simplify date conversion functions
Do not use the 3rd-party code from JSC, but instead use the QDateTime
functions for millisecond offsets from the epoch.
Note that this change is reviving the earlier change:
http://codereview.qt-project.org/1874. The test failures for that
change no longer occur due to a change in the QDateTime behavior
applied by: http://codereview.qt-project.org/13169
There is still a semantic difference between QDateTime and the
ECMAScript specification with regards to the application of DST.
ECMAScript requires that the current DST adjustment should be applied
to historical dates, whereas QDateTime will apply the adjustment as
applicable at the epoch date to any prior dates.
Change-Id: Ibebd47c9d2b75a034342ffcda075501a6a527b8d
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Frederik Gladhorn [Fri, 23 Mar 2012 16:42:09 +0000 (17:42 +0100)]
Create accessible interfaces only for items with attached prop
If the attached property is not found, ignore the item, unless
it is part of the tree. We still create a valid hierarchy this
way, but filter out all irrelevant items. The same goes for
hit-testing.
On the other hand this patch enables the root item to be found
by setting isAccessible on it when updating the flags. Otherwise
the hierarchy is not valid again.
Change-Id: Ied422fd0506d13458757c87a5dad7cdb9d3079bf
Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
Aurindam Jana [Tue, 10 Apr 2012 15:36:31 +0000 (17:36 +0200)]
QQmlDebugServer: Use Q_D(const )
Change-Id: I118a7b9de886c712027c55c38be99f615aea6902
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Aurindam Jana [Wed, 4 Apr 2012 08:56:21 +0000 (10:56 +0200)]
QmlDebug: Enable/Disable tool
Change-Id: Icb200474f1edff62d2fdd4bad9389117966775d5
Reviewed-by: Simjees Abraham <simjees.abraham@nokia.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Aurindam Jana [Wed, 4 Apr 2012 14:18:17 +0000 (16:18 +0200)]
QmlDebug: Remove Color Tool
Change-Id: I3d54d24c2873648c9530ee8e7a33c95275e369e0
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Aurindam Jana [Thu, 5 Apr 2012 07:55:51 +0000 (09:55 +0200)]
QmlDebug: Highlight select items
Enable higlight of selected items only in Design Mode.
Change-Id: I06e97df51bf8632560932dda776e748df90bc163
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Aurindam Jana [Wed, 4 Apr 2012 08:51:40 +0000 (10:51 +0200)]
QmlDebug: Inspect Tool
Select item on single click/tap and cycle through elements
in the view stack on double click/tap.
Change-Id: I36cdcbf3a8800a715eda6c916f4f206bac16e399
Reviewed-by: Simjees Abraham <simjees.abraham@nokia.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>