Commit Graph

1699 Commits

Author SHA1 Message Date
Gunnar Sletta 2b99f2a4da Remove documentation for non-existing function
Change-Id: I1f08e0501694bde6991eb35adaadb9fa4a3356c1
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
2011-11-23 10:11:43 +01:00
Kent Hansen 699b74dc1d Don't crash when importing script with syntax error
Task-number: QTBUG-22843
Change-Id: I2b1ed6cbbc7a566f54b441359941ea121a9033ba
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
2011-11-23 10:11:19 +01:00
Kent Hansen 384fd7cdf1 v4: Get rid of dependency on QQuickAnchorLine type
Delegate the meta-type id query and value comparison to
QDeclarativeMetaType.

Register a comparison function for QQuickAnchorLine in
QQuickItemsModule, so that not even QDeclarativeMetaType needs to
know the type declaration. (This is needed in order to be able to
move the items to a separate library.)

Change-Id: I6404d01b74143946ae0a79fa18d1777b675e4194
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
2011-11-23 10:03:40 +01:00
Kent Hansen 23a6a1c26b Add QtQuick1 plugin's major version to target path
This ensures that the plugin is only loaded when "import QtQuick 1.0"
(or 1.x, rather) is used, and not when "import QtQuick 2.0" (or a
later version) is used.

Change-Id: I3f7621f316449071d7a891c72840ab1d2fd6b962
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
2011-11-23 08:48:41 +01:00
Martin Jones 371b2f6947 Fix PathView insertion/removal/move item offset
Fix item positioning post model changes and add auto tests. Also
fixes crash when inserting items before currentIndex, causing
offset to increase beyond item count.

Task-number: TBUG-22785
Change-Id: I17000ba497a190554c8b137a72b7e6551e8a0e56
Reviewed-by: Bea Lam <bea.lam@nokia.com>
2011-11-23 08:48:41 +01:00
Bea Lam 54a547549c tst_QQuickGridView::unaligned() was failing on mac
Failing when threaded renderer is enabled. Ensure remove is
applied before testing the result.

Change-Id: I156efb43735ee0efd6a6f0b9a721979aafe17605
Reviewed-by: Bea Lam <bea.lam@nokia.com>
2011-11-23 07:40:45 +01:00
Michael Brasser 7ccace3c47 Stabilize Behavior tests.
Change-Id: I6ef68fa5f8fd7731c3e683de517ec3a2cb05365b
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
2011-11-23 06:35:30 +01:00
Aaron Kennedy 0ce1d0c0e4 Don't disconnect mid binding evaluation
Task-number: QTBUG-22816
Change-Id: I7a958203945a051322228b6fade9e1d49d5f4c4a
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
2011-11-22 14:45:14 +01:00
Kai Koehne 8c7da024f0 Profiler: Preserve line information also for optimized bindings
Change-Id: Ibd5abb42364711fab454e6b9c13af53462730471
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
2011-11-22 13:45:40 +01:00
Kai Koehne 43e20d5701 Debugger: Move server into it's own thread
So far the debugger infrastructure was running in the GUI thread,
which required e.g. nested event loops to implement blocking behavior.
The server and networking code are now running in their own thread,
while the services are still running in the main thread.

Because v8 isn't thread safe, we're adding two new JSEngines + isolates
to qv8debugservice: One to decode JSON messages in the debugger thread,
and one in the GUI thread.

Change-Id: I746f5e203968f7bcc510fb66118c88ef0fd0cd14
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
2011-11-22 13:45:27 +01:00
Christian Kamm 774eebf997 qmlplugindump: Fix QObject dump.
* Hide deleteLater and the destroyed signal.
* Add destroy and toString functions.

Task-number: QTCREATORBUG-4903
Change-Id: Icbae3e1c82605baa84ac9cc8f38cd747e4dcf687
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
2011-11-22 12:16:13 +01:00
Alan Alpert 64b26c6bda SpriteImage Example
Click the bear!

Change-Id: I804f95930000ec1b4dec2cd631bc51dd88689d1c
Reviewed-by: Martin Jones <martin.jones@nokia.com>
2011-11-22 07:39:36 +01:00
Bea Lam d2d4024afb Fix inserting before the visible area into cache buffer
Items being inserted after the visible index must be created, even if
they aren't in view (e.g. are in the cache buffer) otherwise they will
not appear at the correct index in the visibleItems list.

Task-number: QTBUG-22772
Change-Id: I235dc766a6abf4988872bb70aa40cdc767df8c96
Reviewed-by: Martin Jones <martin.jones@nokia.com>
2011-11-22 06:14:56 +01:00
Bea Lam 18e89379f8 Try again to fix currentIndex() test
Seems that if the threaded renderer is disabled, updatePolish() isn't
called on the view until after setCurrentIndex(), so then the view
starts at the wrong position and never moves upwards when
setCurrentIndex(0) is executed.

Change-Id: I74da9de8ac432d27189416287e7ea5937c1d6299
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
2011-11-22 06:14:52 +01:00
Martin Jones 8d8015f8d5 Move path with highlightMoveDuration: 0
Task-number: QTBUG-22786

Change-Id: I10043bfa5d8c622fc4e7a25bcb1f96ef43d23890
Reviewed-by: Bea Lam <bea.lam@nokia.com>
2011-11-22 03:32:42 +01:00
Martin Jones 88fefbc68d Qt.locale() and JS locale type extension.
Task-number: QTBUG-17129

Change-Id: I69cbbe858735b750b4e37ce489f2fa1ad5d8b5d3
Reviewed-by: Martin Jones <martin.jones@nokia.com>
2011-11-22 03:32:21 +01:00
Glenn Watson d2c1adc6f9 Emit destruction signal before child contexts are destroyed.
Verbatim comment from bug report:

When using a QtObject inside an item, and then we call a function
in the Component.onDestruction handler of that item, we get a
crash. This happens because the QDeclarativeContextData engine
has been invalidated before reaching
QDeclarativeExpressionPrivate::evalFunction.

Change code to emit the onDestruction signal before the child
contexts are invalidated.

Task-number: QTBUG-22535
Change-Id: Ic4983ae5fdf104ae977189c21dc202c9b02bc2bc
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
2011-11-22 03:31:14 +01:00
Glenn Watson 0bf08af2b9 Fix default property preventing signals from being emitted.
Change the way connectAlias works so that even if the target
for the connection is not available immediately, anything that
is bound to it is notified when the target is changed.

(Fix is authored by Aaron).

Task-number: QTBUG-21580
Change-Id: Ida23c0e620069c50b123c71b5078929d4c7ec4e4
Reviewed-by: Martin Jones <martin.jones@nokia.com>
2011-11-22 03:31:11 +01:00
Joona Petrell 3ef0ce6b79 Fix failing openInputPanel autotests
Task-number: QTBUG-21946
Change-Id: I605aca3ba5b01414c9533ca9673f1b51917df755
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
2011-11-22 03:30:34 +01:00
Kai Koehne 9132f67d46 Debugger: Fix Qt library dependencies for autotests
Change-Id: Icf5465a60c7b76d5b80d0ecb40a2bd7eaa2a3689
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2011-11-21 23:03:01 +01:00
Aaron Kennedy fbbc3cab4a Adding custom easing curves to property animations
QDeclarativeEasingValueType gets the property customBezierCurve.
This allows to define a custom easing curve as a cubic bezier curve.

Change-Id: I33ae128ce29bba2834eedcbb90a9769a5391f997
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
2011-11-21 19:01:16 +01:00
Friedemann Kleint af0af6fa1a Fix compile.
Fix breakage introduced by
qtbase:dc0b588162951b3412e835d931637d74cb4e98b5,
missing forward declaration of QInputMethodEvent.

Change-Id: I0b659c97b15b651effb589611641e97156e385d3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2011-11-21 17:09:12 +01:00
Kai Koehne 56f4015c25 Debugger: Fix QDeclarativeDebugTrace autotest
Change-Id: Ic17c42b6a6e388b92729fd2f653515b714f765b0
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
2011-11-21 14:37:00 +01:00
Kai Koehne d7a5727d69 Silence compiler warnings about unused variables (MSVC)
Fixes most  'C4189: local variable is initialized but not referenced' warnings

Change-Id: I8c5a1ba0a50dd3fcb22294e564425846362ee911
Reviewed-by: Martin Jones <martin.jones@nokia.com>
2011-11-21 09:43:11 +01:00
Kai Koehne eeadfe200d Fix MSVC warning about struct vs class declaration
Change-Id: I00dc08c746b30f6d49b831989ae1d0d798b430a5
warning: C4099: 'QMetaObject' : type name first seen using 'struct' now seen using 'class'
warning: C4099: 'QV4Program' : type name first seen using 'class' now seen using 'struct'`
Reviewed-by: Martin Jones <martin.jones@nokia.com>
2011-11-21 09:43:02 +01:00
Martin Jones b3e5750027 Fix GridView currentIndex test stability
Change-Id: Ib3a8efdc4447712f9877b70338027efcceff558f
Reviewed-by: Bea Lam <bea.lam@nokia.com>
2011-11-21 07:41:07 +01:00
Alan Alpert 3ca7d45480 Clean up static analysis issues.
Just removing overly defensive programming and unused variables.

Change-Id: I1ffe7a5bd46375f74a8e71e7710d29bc1de02b7d
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
2011-11-21 06:16:48 +01:00
Rohan McGovern 99ddd0e7ba Fixed compile of tst_qdeclarativelistcompositor with -qtnamespace.
This operator== must be in the Qt namespace.

Change-Id: I28cece2b5f54efc3b2b5aed2ef675ff1b6056370
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
2011-11-21 06:16:43 +01:00
Martin Jones 37aa79eba6 Doc: Canvas doc review.
Change-Id: I6edf44c1db47ca58c426464f8e4c852bf71176f6
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
2011-11-21 06:16:41 +01:00
Andrew den Exter a45c4ce878 Don't leak objects when a VisualDataModel is destroyed before a view.
If an item is still referenced by a view when the VisualDataModel is
destroyed delete it, otherwise it will leak as the view have no
interface to release it and deleting the item won't delete the package.

Task-number: QTBUG-22672
Change-Id: I7b89962d724d7a391c97722638e03b7a186b8a8f
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
2011-11-21 06:16:30 +01:00
Rohan McGovern 2b3328fc4d Fixed more declarative -qtnamespace compilation issues.
Change-Id: I56a00af1e360887af97eb98f2c6756fb90ba75d6
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
2011-11-21 06:16:24 +01:00
Toby Tomkins dd5a24522a Fix Qt Declarative namespace compilation.
Change-Id: Ib3294278985cd43e40610dacd7b69bf98ff4d788
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
2011-11-21 03:43:33 +01:00
Martin Jones 8eb0e48a05 GridView sometimes lays out one less column than expected
If the cellWidth/cellHeight was not a whole number the wrapping was
unreliable.  Calulate column positions more robustly, i.e. avoid
comparing values subject to rounding errors.

Task-number: QTBUG-21846
Change-Id: Ic3a90b36d542ce8af49461bd524e4405c74aece5
Reviewed-by: Bea Lam <bea.lam@nokia.com>
2011-11-21 01:54:26 +01:00
Glenn Watson d81059e4f8 Fix v8 handle leak in incubator code.
Release forceCompletion handle that is created in the constructor
to avoid a persistent handle being leaked.

Change-Id: I5b68d586e7a8e6ba48c018e21faac8108387fa2b
Reviewed-by: Martin Jones <martin.jones@nokia.com>
2011-11-21 00:39:05 +01:00
Martin Jones 7a5f616270 Doc: cleanup list of QtQuick2 elements
Change-Id: Ic07521e31870f5ecd544834c0839034578c62dcf
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
2011-11-21 00:38:56 +01:00
Michael Brasser 7e8e6b2d5b Rewrite signal handlers at compile time.
Task-number: QTBUG-22726
Change-Id: If2c3c00c646b2ed6b6899573a0b487c8deeaad3f
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
2011-11-20 23:23:38 +01:00
Gunnar Sletta 62a3167683 Copy QSGEngine functions to QQuickCanvas.
Long term we intend to remove the QSGEngine class
all together so this is the first step. It duplicates
some of the logic but doesn't break anything.

Also including an example on how to use it in
examples/declarative/openglunderqml

Change-Id: I69ed93ec5fa1b5c4c746169306d38f8d6ce80477
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
2011-11-18 15:44:20 +01:00
Alan Alpert b37c6b05a3 Un-skip Positioners test
This test was skipped because it inexplicably led to a crash on exit,
but this crash is now fixed.

Task-number: QTBUG-21995
Change-Id: I439a410a7f36adef9924d163941a79a39886a5d1
Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
2011-11-18 10:32:01 +01:00
Kent Hansen db510f4880 Change sync.profile back to using refs/heads/master for qtbase
The issue that caused crashes with a more recent qtbase
was fixed in commit ddf9883f8d.

Task-number: QTBUG-22574
Change-Id: Ia85b7265103e03f71585c5b72496af83056a4fcf
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
2011-11-18 08:47:38 +01:00
Alan Alpert 8f6b84cace Mark unstable test to be ignored
Task-number: QTBUG-22807

Change-Id: I59b4d49c049756d2d133d1455165d16218042663
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
2011-11-18 08:47:29 +01:00
Yann Bodson cfb9a45bf1 Fix tst_qquicktext autotest
Task-number: QTBUG-21009
Change-Id: I3dea72318b7b6040ddd906a6e870389754d4d750
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
2011-11-18 07:58:25 +01:00
Andrew den Exter 9f8570dfc7 Parent delegate items to PathView.
This is consistent with ListView and GridView and ensures the items
live only as long as the view and are deleted on application shutdown
where deferred delete events are discarded.

Change-Id: I77174b2725310d068fbba89b57e0da59619ef22a
Reviewed-by: Martin Jones <martin.jones@nokia.com>
2011-11-18 07:58:22 +01:00
Andrew den Exter a06e749b12 Parent delegate items to PathView.
This is consistent with ListView and GridView and ensures the items
live only as long as the view and are deleted on application shutdown
where deferred delete events are discarded.

Change-Id: I77174b2725310d068fbba89b57e0da59619ef22a
Reviewed-by: Martin Jones <martin.jones@nokia.com>
2011-11-18 06:47:51 +01:00
Yann Bodson e206493956 Fix tst_qquicktext autotest
Task-number: QTBUG-21009
Change-Id: I3dea72318b7b6040ddd906a6e870389754d4d750
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
2011-11-18 06:47:38 +01:00
Andrew den Exter b811bd2f2d Add tests for Undo/Redo and key sequences to TextInput/Edit.
Task-number: QTBUG-22627

Change-Id: Id7072a0a98529bbd5b50b4b292eca7235a7b6149
Reviewed-by: Martin Jones <martin.jones@nokia.com>
2011-11-18 05:08:34 +01:00
Andrew den Exter 5ad4a34f55 Add tests for Undo/Redo and key sequences to TextInput/Edit.
Task-number: QTBUG-22627

Change-Id: Id7072a0a98529bbd5b50b4b292eca7235a7b6149
Reviewed-by: Martin Jones <martin.jones@nokia.com>
2011-11-18 03:38:49 +01:00
Chris Adams 4091f15cc0 Fix leak in QQuickParticleData
Task-number: QTBUG-22672

Change-Id: I14b436b0d968409bd71a6bf65db6c994f08dece1
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
2011-11-18 01:36:03 +01:00
Chris Adams 1495e435c0 Fix leak in QQuickParticleData
Task-number: QTBUG-22672

Change-Id: I14b436b0d968409bd71a6bf65db6c994f08dece1
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
2011-11-18 00:20:47 +01:00
Aurindam Jana a6f3170019 InspectorService: fix failing test cases
Change-Id: I741cc8cc2d1004c2c94a1985ed9287aecf613675
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2011-11-17 20:48:42 +01:00
Aurindam Jana b7319264a1 InspectorService: fix failing test cases
Change-Id: I741cc8cc2d1004c2c94a1985ed9287aecf613675
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
2011-11-17 19:39:05 +01:00