aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make the particles benchmarks compile againKent Hansen2011-11-242-2/+2
| | | | | Change-Id: Ia56fcb06ee1ef73d81288358f584cb65e3242254 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Fix style issuesKent Hansen2011-11-242-3/+3
| | | | | | | Make the Sanity Bot happy. Change-Id: Idb6d7f8c758de991c60e100b76d54ad49e16212b Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Propegate the smooth property to the textureproviderGunnar Sletta2011-11-241-0/+1
| | | | | | | Task-number: QTBUG-22880 Change-Id: I693a44e87fb87bc92e1647f6158d23986f98623a Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Added test for input method selection in TextInputPekka Vuorela2011-11-241-0/+13
| | | | | Change-Id: I4438625f9bb82e53bbdf173c9148f587984d7f81 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* QDeclarativeDebugService: Crash fixAurindam Jana2011-11-241-5/+7
| | | | | | | Query for serviceNames in registerService. Change-Id: I570bd68c424cec696ca813a7fa1b485b64e328a4 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* QQuickTextInput - Remove nonexisting method from headerPekka Vuorela2011-11-241-1/+0
| | | | | | Change-Id: I48aa6efec784ea3ae937636083f6ce211521bfc6 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* TextInput elements not to have tentative commit in inputMethodQueryPekka Vuorela2011-11-244-2/+46
| | | | | | | | Tentative commit should not be part of surrounding text, it's already a property of the input method. Change-Id: I64aec9763fb20770b6729f7f59dcbe23cf5a6718 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Fixed assert during QQuickCanvas::hideEvent().Kim Motoyoshi Kalland2011-11-242-18/+3
| | | | | | | | Also fixed a memory leak in the non-threaded renderer so that it is on par with the threaded one. Change-Id: Ie3111730a9d10085c83f7aafceda240419b722cd Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* ConsoleAPI: Use environment variableAurindam Jana2011-11-2411-69/+212
| | | | | | | | | Show detailed information, such as file and line number, for console.log, console.debug and print when the environment variable QML_CONSOLE_EXTENDED is set. Change-Id: I8f660f58d0fd08971ce9706b4a418ed60f312980 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Get rid of unused inputMethodQuery and inputMethodEvent functions in ↵Joona Petrell2011-11-244-58/+47
| | | | | | | | | | | | QQuickCanvas * in Qt5 input method events and queries are meant to be sent directly to QInputPanel::inputItem() instead of the focused QWindow * protected inputMethodEvent was actually never called by QWindow::event() like it called other specialized event functions Change-Id: I68cced106808098c320841d6a17a0cc170a8369f Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Move registration of QtQuick 2 types to separate classKent Hansen2011-11-244-8/+129
| | | | | | | | | Just a bit of cleanup to make QtQuick2's definition follow the convention of QtQuick1, in preparation of moving QtQuick2 to its own library. Change-Id: If9e19e5f5512f9417373bb977bcb424186554c8f Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Move QDeclarativeListModel and friends from util/ to qml/Kent Hansen2011-11-2417-25/+17
| | | | | | | | | | | QDeclarativeWorkerScript depends on QDeclarativeListModel et al, so the latter should also reside under qml/. Note that QDeclarativeOpenMetaObject also had to be moved, since QDeclarativeListModel depends on it. Change-Id: I164cba0e530d22b5771056a2acde12a18d5e83e1 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Move QDeclarativeApplication from util/ to qml/Kent Hansen2011-11-246-4/+3
| | | | | | | | QDeclarativeEngine/QV8Engine depend on QDeclarativeApplication, so this class should reside under qml/, not util/. Change-Id: I2cd49ba1170bfb610a7607525891cb80c8828f27 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Remove unused code.Martin Jones2011-11-241-31/+0
| | | | | Change-Id: Ib6ed3b9ff80593ce84930c0837201be3516b7918 Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
* Skip tst_QQuickListView::resizeFirstDelegate unstable testMartin Jones2011-11-241-0/+2
| | | | | | Task-number: QTBUG-22872 Change-Id: Ie77701f4f2ab5c56106f9c58b9ace869868e3452 Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
* Use the AST for binding rewriting when possible.Michael Brasser2011-11-236-13/+10
| | | | | Change-Id: I1ac8bd39ea7e02f7c236c030ca233e1060746431 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Debugger: Don't register v8 callback until client is attachedKai Koehne2011-11-232-46/+148
| | | | | | | | | | Registering the v8 debugger callback reportedly slows down performance. Do this only if a client is really attached. When attaching, request the already compiled scripts to make sure breakpoint urls are properly adapted. Change-Id: I9ff24b7ca53e13da06f70a9e5860bbd4b9aa0d99 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Extend v8 debugger autotestsKai Koehne2011-11-233-49/+179
| | | | | | | | Add a few test cases for attaching to a non-blocking process (using the new timer.qml test file). Change-Id: I480fb358411b5b19e22bc9875e1809f1faad5514 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Re-enable autotests for v8 debuggerKai Koehne2011-11-232-2/+1
| | | | | | | The crash in getScopes has been fixed in qtbase (commit ecd31946789) Change-Id: I853d2567701ac986b30fc9013dac4c05eb450c9a Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Debugger: Make registration of services explicitKai Koehne2011-11-239-20/+27
| | | | | | | | | | Services now have to call registerService() themselves in the constructor. This fixes a race condition where the empty implementation of messageReceived() was called instead of the one in the subclass because the object wasn't fully constructed yet. Change-Id: I590ec8b76e906bdb6b5cdcb18680938edde283ee Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Increase the limit of the QDeclarativePixmapCache to something sensibleGunnar Sletta2011-11-231-6/+1
| | | | | | | | The limit used to be much higher, but was changed due to an accidental tag-along in a commit in April. Change-Id: Ie9f868b3059758aef87c2e1979ef22d840631930 Reviewed-by: Bjørn Erik Nilsen <bjorn.nilsen@nokia.com>
* Remove documentation for non-existing functionGunnar Sletta2011-11-231-8/+0
| | | | | Change-Id: I1f08e0501694bde6991eb35adaadb9fa4a3356c1 Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
* Don't crash when importing script with syntax errorKent Hansen2011-11-237-4/+78
| | | | | | Task-number: QTBUG-22843 Change-Id: I2b1ed6cbbc7a566f54b441359941ea121a9033ba Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* v4: Get rid of dependency on QQuickAnchorLine typeKent Hansen2011-11-236-13/+49
| | | | | | | | | | | | | 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>
* Add QtQuick1 plugin's major version to target pathKent Hansen2011-11-231-1/+1
| | | | | | | | | 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>
* Fix PathView insertion/removal/move item offsetMartin Jones2011-11-232-23/+334
| | | | | | | | | | 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>
* tst_QQuickGridView::unaligned() was failing on macBea Lam2011-11-231-1/+1
| | | | | | | | 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>
* Stabilize Behavior tests.Michael Brasser2011-11-231-4/+7
| | | | | Change-Id: I6ef68fa5f8fd7731c3e683de517ec3a2cb05365b Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Don't disconnect mid binding evaluationAaron Kennedy2011-11-223-0/+32
| | | | | | Task-number: QTBUG-22816 Change-Id: I7a958203945a051322228b6fade9e1d49d5f4c4a Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Profiler: Preserve line information also for optimized bindingsKai Koehne2011-11-223-3/+8
| | | | | Change-Id: Ibd5abb42364711fab454e6b9c13af53462730471 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Debugger: Move server into it's own threadKai Koehne2011-11-2211-155/+276
| | | | | | | | | | | | | | 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>
* qmlplugindump: Fix QObject dump.Christian Kamm2011-11-221-2/+30
| | | | | | | | | * 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>
* SpriteImage ExampleAlan Alpert2011-11-226-0/+109
| | | | | | | Click the bear! Change-Id: I804f95930000ec1b4dec2cd631bc51dd88689d1c Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix inserting before the visible area into cache bufferBea Lam2011-11-224-4/+190
| | | | | | | | | | 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>
* Try again to fix currentIndex() testBea Lam2011-11-221-0/+1
| | | | | | | | | | 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>
* Move path with highlightMoveDuration: 0Martin Jones2011-11-222-1/+16
| | | | | | | Task-number: QTBUG-22786 Change-Id: I10043bfa5d8c622fc4e7a25bcb1f96ef43d23890 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Qt.locale() and JS locale type extension.Martin Jones2011-11-2226-11/+3024
| | | | | | | Task-number: QTBUG-17129 Change-Id: I69cbbe858735b750b4e37ce489f2fa1ad5d8b5d3 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Emit destruction signal before child contexts are destroyed.Glenn Watson2011-11-224-8/+39
| | | | | | | | | | | | | | | | | 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>
* Fix default property preventing signals from being emitted.Glenn Watson2011-11-227-22/+314
| | | | | | | | | | | | 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>
* Fix failing openInputPanel autotestsJoona Petrell2011-11-222-2/+59
| | | | | | Task-number: QTBUG-21946 Change-Id: I605aca3ba5b01414c9533ca9673f1b51917df755 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Debugger: Fix Qt library dependencies for autotestsKai Koehne2011-11-219-10/+9
| | | | | | Change-Id: Icf5465a60c7b76d5b80d0ecb40a2bd7eaa2a3689 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Adding custom easing curves to property animationsAaron Kennedy2011-11-2110-5/+497
| | | | | | | | 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>
* Fix compile.Friedemann Kleint2011-11-211-0/+1
| | | | | | | | | Fix breakage introduced by qtbase:dc0b588162951b3412e835d931637d74cb4e98b5, missing forward declaration of QInputMethodEvent. Change-Id: I0b659c97b15b651effb589611641e97156e385d3 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Debugger: Fix QDeclarativeDebugTrace autotestKai Koehne2011-11-211-3/+3
| | | | | Change-Id: Ic17c42b6a6e388b92729fd2f653515b714f765b0 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Silence compiler warnings about unused variables (MSVC)Kai Koehne2011-11-218-6/+18
| | | | | | | Fixes most 'C4189: local variable is initialized but not referenced' warnings Change-Id: I8c5a1ba0a50dd3fcb22294e564425846362ee911 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix MSVC warning about struct vs class declarationKai Koehne2011-11-212-2/+2
| | | | | | | 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>
* Fix GridView currentIndex test stabilityMartin Jones2011-11-212-0/+4
| | | | | Change-Id: Ib3a8efdc4447712f9877b70338027efcceff558f Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Clean up static analysis issues.Alan Alpert2011-11-217-21/+14
| | | | | | | Just removing overly defensive programming and unused variables. Change-Id: I1ffe7a5bd46375f74a8e71e7710d29bc1de02b7d Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Fixed compile of tst_qdeclarativelistcompositor with -qtnamespace.Rohan McGovern2011-11-211-0/+2
| | | | | | | This operator== must be in the Qt namespace. Change-Id: I28cece2b5f54efc3b2b5aed2ef675ff1b6056370 Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Doc: Canvas doc review.Martin Jones2011-11-211-89/+75
| | | | | Change-Id: I6edf44c1db47ca58c426464f8e4c852bf71176f6 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>