aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Mark failing tests as insignificant.Stephen Kelly2012-10-241-0/+2
| | | | | | | | | | Change-Id: I2dbed0d5fe632a034a0f656c2e3ccc3e63d4078b Reviewed-by: Richard J. Moore <rich@kde.org>
* | Fix crash in qtlocation tests.Friedemann Kleint2012-10-241-1/+1
| | | | | | | | | | | | | | Task-number: QTBUG-27696 Change-Id: I0cc12e1be25a789a8245fae3a444629ca57872ef Reviewed-by: Christopher Adams <chris.adams@qinetic.com.au> Reviewed-by: Martin Jones <martin.jones@qinetic.com.au>
* | Allow QQmlDebugProcess to be child of other qobjects.Frederik Gladhorn2012-10-237-8/+9
| | | | | | | | | | | | | | | | | | | | | | Some tests when failing would leave the process running. For example on my machine tst_qqmlinspector would hang and restarting it would not work because the before started process was still blocking the port. Change-Id: I32dfb4874b18d7dcf34d0f40819b17dedd794ff3 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* | Allow tests to run despite custom message patterns.Frederik Gladhorn2012-10-231-1/+1
| | | | | | | | | | | | | | With QT_MESSAGE_PATTERN some tests would not run without explanation. Change-Id: I68a9eda08fe56508ffaaef209a1f236621aa932e Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* | Change qml list interfaceMarco Bubke2012-10-2311-38/+160
| | | | | | | | | | Change-Id: I185c6f4cef6105544504324c1616b5995c219fe3 Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
* | Adding invalidate function to QQmlPropertyCacheThomas Hartmann2012-10-232-0/+34
| | | | | | | | | | | | | | | | This is required for tooling to update a QMetaObject inside a running QQmlEngine. Change-Id: I26d3aeed57d39c361c150261c4e1a84094e6f657 Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
* | Make Rectangle border be inner instead of centered on the outline.Samuel Rødal2012-10-226-127/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | This avoids awkward situations such as when clipping to a parent item of the same size and makes it easier to reason about the bounding rectangle of the item. Task-number: QTBUG-21341 Change-Id: If015cfbc5792429f4a407fc0547ea71eca779eda Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
* | Skip flaky subtests of tests/auto/qmltest.Friedemann Kleint2012-10-222-0/+2
| | | | | | | | | | | | | | | | | | | | - Skip test_key_click() in events/tst_events.qml. - Skip test_pixel pixel/tst_pixel.qml. Task-number: QTBUG-27671 Change-Id: Id78c34244d346910e28a2368f9fe3a41f54b8fb9 Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
* | Fix qmltest library.Friedemann Kleint2012-10-201-4/+16
| | | | | | | | | | | | | | | | | | | | - Avoid hangs (waiting for frameSwapped) and crashes in window managers for empty windows by giving windows a minimum size if they have 0x0 (observed on Mac, Windows). - Polishing, set proper window flags, title, object name, output. Change-Id: Iad5d66c3adbbfe085390132987e95f4c69272831 Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
* | Change Q_ASSERTs in qquick[threaded]windowmanager.cpp to qWarning().Friedemann Kleint2012-10-202-11/+22
| | | | | | | | | | | | | | | | | | As they also triggers when a non-existing file is loaded into QML2 or windows have invalid sizes. Change-Id: Iab1ce6c99f2bc2cb360ddaccce539cb97979ad5a Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
* | Re-enable tst_QJSEngine::stringObjects testPeter Varga2012-10-191-4/+0
| | | | | | | | | | | | | | | | Corresponding bug has been fixed in QtJSBackend thus re-enable test and remove expected failures. Change-Id: I72d6ce31a1c932db29dad0758e0c2654543a5b1f Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | QQmlOpenMetaObjectType: extend interface for visual designerThomas Hartmann2012-10-192-0/+21
| | | | | | | | | | | | | | | | We need those 3 functions to rebuild OpenMetaObject in the visual designer. Change-Id: I70affe5850f46683a049615b3173a4f30c338401 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
* | Add polishItems to the designer supportMarco Bubke2012-10-192-0/+7
| | | | | | | | | | Change-Id: Ibec0b1f6c438f0c7b40c81ec81cd092768701f34 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
* | Fix QQuickTextInput::moveCursorSelection()Konstantin Ritt2012-10-194-51/+47
| | | | | | | | | | | | | | | | | | | | | | by using fixed QTextBoundaryFinder behavior. Update QQuickTextInput autotests. Task-number: QTBUG-11365 Change-Id: I81761c019e2fe80c9795fe54a2a990bfc5d4b709 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Fix list functions for the data propertyMarco Bubke2012-10-181-11/+27
| | | | | | | | | | | | | | | | The Qml Designer needs this functions. Task-number: QTCREATORBUG-8039 Change-Id: I6e072723630cf971ad3eda921497699611ae934e Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
* | Temporarily skip tst_QJSEngine::stringObjects testPeter Varga2012-10-181-0/+2
| | | | | | | | | | | | | | | | Expected failures of this test block to land a patch to QtJSBackend that fixes them. Change-Id: If5c73cb668f9cc05e605e4f37c0dfabc0eecb5a8 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* | QQuickItem: handle QEvent::StyleAnimationUpdateJ-P Nurmi2012-10-171-0/+3
| | | | | | | | | | Change-Id: Id5c4de6bdcd395a1e32449e69d773e9a35fab4c9 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* | Doc: Cleaned up \module and \qmlmodule page for Qt Quick and Qt QML.Jerome Pasion2012-10-175-10/+8
| | | | | | | | | | | | | | | | -Qt Quick: used a regular page instead of \qmlmodule -Cleaned up titles and membership Change-Id: I8ae24fec203ea675d213bd0df6105d0c2abd8164 Reviewed-by: Martin Smith <martin.smith@digia.com>
* | Make Qt.quit() from inside QML work in the examplesJan Kundrát2012-10-171-0/+2
| | | | | | | | | | | | | | | | Without this patch, the samegame's quit button does not work. Change-Id: I904832d018d589e90564534ac1eca02e0dbb54fc Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | QQuickScreen attached obj handles screenChanged and geometryChangedShawn Rutledge2012-10-162-7/+22
| | | | | | | | | | | | | | | | | | | | sizeChanged is replaced with geometryChanged. Given a Window, it also needs to connect to the Window's screenChanged signal. The result is that if the screen is changed after the QQuickView is created, the Screen attached object will be updated. Change-Id: I64473dd960376b861eb50e3e5a1a296d0030e766 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
* | Use the shared boilerplate code in the tweetsearch demoJan Kundrát2012-10-161-24/+2
| | | | | | | | | | | | | | | | | | Without the shared boilerplate code, the demo will not run unless the application is launched from the directory containing the QML files. Also, it improves consistency to use the same code as with the other examples. Change-Id: Ic3bc358c13cdee4310aaaf7daf4c645c4709027e Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
* | Doc: Changed the title to fix broken linksVenugopal Shivashankar2012-10-161-1/+1
| | | | | | | | | | Change-Id: I84bdb335980fdeae0c91021179ede19eae79e811 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* | Remove interim compatibility measuresAlan Alpert2012-10-1628-281/+218
| | | | | | | | | | | | | | | | Also update some variables in qtdeclarative which failed to update rootItem->contentItem. Change-Id: Id34e29546a22a74a7ae2ad90ee3a8def6fc541d3 Reviewed-by: Alan Alpert <416365416c@gmail.com>
* | Fix crash in the qmlpuppet at finishingMarco Bubke2012-10-151-1/+2
| | | | | | | | | | | | | | Task-number: QTCREATORBUG-8042 Change-Id: I30a5b40d6441ea1631ba11a97b062720e70ddca8 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
* | Adding DesignerWindowManager for Qt Quick DesignerMarco Bubke2012-10-157-10/+277
| | | | | | | | | | | | | | | | | | DesignerWindowManager implements a render path just for Qt Quick Designer, which is single threaded and does not open visible windows. Change-Id: I02b0d1b819a7a5391b9bb14ee6efa1a32e0c8ad7 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
* | We need to export QQmlVMEMetaObject to support the designerThomas Hartmann2012-10-121-1/+1
|/ | | | | | | | In the designer we need to access QQmlVMEMetaObject. Change-Id: I36627c6ce1c2c27bef8dd85374b65a542b00d1ef Reviewed-by: Aurindam Jana <aurindam.jana@digia.com> Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
* Update docs after modularization of docsTor Arne Vestbø2012-10-129-788/+8
| | | | | | | | | The global files now live in qtbase only, and are made available to the other modules via the $QT_INSTALL_DOCS variable. Change-Id: I131408e27fec5b722ac1dece8e1ccf421fdaad67 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Martin Smith <martin.smith@digia.com>
* Fix imageelements example deploymentTopi Reinio2012-10-121-1/+1
| | | | | | | | Some of the .qml files were missing from INSTALLS Task-number: QTBUG-26996 Change-Id: I9508ca3c43f354a16405af68dbca0133117ee2e2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Fix performance bottleneck in QQuickWindow::mouseMoveEvent().Sérgio Martins2012-10-116-9/+146
| | | | | | | | | | | | | | | | | | When a mouse move event is received, a lot of time is spent looking for items with cursors, recursively. With this patch, it will only recur into item hierarchies that contain cursors. Not having cursors is much more common than having them. Benchmark included: Before: 15 msecs per iteration (total: 62, iterations: 4) After: 0.000064 msecs per iteration (total: 68, iterations: 1048576) Task-number: QTBUG-27054 Change-Id: I3a5441652ca1c0b8d2cbc5683013562174f5af4a Reviewed-by: Alan Alpert <416365416c@gmail.com>
* Add missing contents dir to installation of canvas exampleMiikka Heikkinen2012-10-101-1/+1
| | | | | | | Task-number: QTBUG-26995 Change-Id: Ib346c857f9e0bc97bb2e4365abddb6475c7142d4 Reviewed-by: Topi Reiniö <topi.reinio@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Remove calculateHash functionPeter Varga2012-10-101-79/+3
| | | | | | | This function has been moved into QtV8 module. Change-Id: Ibc5b0a52bd158e8880a10300eb6b89b7f43db0f6 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Fix QObject::receivers() within connectNotify()Thomas McGuire2012-10-102-2/+8
| | | | | | | | | The receiver count needs to be correct in connectNotify() to be compatible with ordinary connections. Fix this and add test. Change-Id: Icff0486dac49876b8c5d8836a85cff9284368a52 Reviewed-by: Alan Alpert <416365416c@gmail.com>
* In tst_qqmlnotifier, verify the result of QObject::receivers()Thomas McGuire2012-10-101-0/+24
| | | | | Change-Id: If7f93e51afc46c153a87d00a9d9913e0058a09e8 Reviewed-by: Alan Alpert <416365416c@gmail.com>
* Update regex related tests of QJSEnginePeter Varga2012-10-101-15/+12
| | | | | | | | | Modify expected results based on ECMA-262 standard and current results of JSC. Task-number: QTBUG-27169 Change-Id: I705d474b2a62775860f6ff6eba8a0f6b28f50ff3 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
* crash fix in designersupportThomas Hartmann2012-10-091-1/+4
| | | | | | | | | | | | Unless result is an insert iterator, qCopy() assumes that all iterators in the range [result + (finish - start)] are dereferenceable. This is not the case for an empty list. Using foreach instead. Change-Id: I2212a88e9b462ae2220ba5aeb43c662592cec57f Reviewed-by: Marco Bubke <marco.bubke@digia.com>
* Complete QmlJSVisitor for UiParameterListThomas Hartmann2012-10-084-1/+11
| | | | | | | | QmlJS::Visitor was missing the visit for UiParameterList. Change-Id: I3c2cb76b934059ebcef53c1a0faad3f239b33359 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Christian Kamm <kamm@incasoftware.de>
* Be more verbose about error when using shared.h for examplesOliver Wolff2012-10-041-6/+14
| | | | | | | | Instead of just aborting the program it should at least give a hint about what actually went wrong. Change-Id: I4019b3c026ba1777905f457562bdc77e5c05df4f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Doc: Cleaned up Qt Quick module's titles and added them to groupJerome Pasion2012-10-044-10/+14
| | | | | | | -'qmlmodules' group contains the QML APIs in Qt Change-Id: I797e6ee0c9e643a92b9e16d476c93b34e79d67d8 Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
* Use correct path to qml files when looking for them in examplesOliver Wolff2012-10-041-1/+18
| | | | | | | | | | | | | As executables might end up in different folders on different plaforms when built, examples' shared.h should not rely on having the qml files in the same folder as the executables. On Windows they end up in debug/ release by default, while they are put in foo.app/Contents/MacOs on Mac if app_bundle is set in CONFIG. Change-Id: If0cea4c186920eb4689d5941b6ff5f333d97c574 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
* Fix emitting originYChanged signals even when originY wouldn't changeGabriel de Dietrich2012-10-032-2/+12
| | | | | | | | | | | Same for originXChanged. Conflicts: src/quick/items/qquickflickable.cpp src/quick/items/qquickflickable_p_p.h Change-Id: I1a316f326b924da4722b692cf27db48312fc9236 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
* Fix in QmlJS parser for UiParameterListThomas Hartmann2012-10-012-0/+3
| | | | | | | | | | | | The propertyTypeToken was not initilized in this case. Not having the source location of this token leads to bugs in the tooling. e. g.: QTCREATORBUG-7931 I also added the initializer for program keeping the parser and the grammar in sync. Change-Id: Id7bfb4b6dd1b9689e701a858b6c769d3addab5dc Reviewed-by: Christian Kamm <kamm@incasoftware.de>
* Allow grabbing windows rendered without showing for testing.Balazs Kelemen2012-09-285-21/+24
| | | | | | | | | | | To make QQuickWindowPrivate::setRenderWithoutShowing more useful for autotesting we can allow grabbing such windows. This is safe if the platform window have been created and the window has a valid size. Change-Id: I8b9a2aaeb93935f662b75ef29651730b890441d5 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com> Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
* Fix potential crash when using text and more than 1 QQuickViewEskil Abrahamsen Blomfeldt2012-09-283-8/+21
| | | | | | | | | | | We need to use a resource guard for the FBO in case there is no current context when the glyph cache is deleted. This reverts commit b3264e2cb6a8fe87754aa1335ab9f8d5e3910c14 which was implemented as a band-aid for this crash. Change-Id: I5b3a09a3998da38836ea851cd0978d3ddadcd2cc Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
* Fix a crash in QQmlPropertyCache::findPropertyJocelyn Turcotte2012-09-282-25/+29
| | | | | | | | | | | | | | | | | | | | | When the top type of a QML component is a C++ type registered with qmlRegisterExtendedType, its QObjectPrivate::metaObject is already a QQmlProxyMetaObject that gets chained as the parent of the QQmlVMEMetaObject of the component. When QQmlPropertyCache::findProperty iterates over the parents chain of a child item, our QQmlProxyMetaObject eventually gets static_casted to QQmlVMEMetaObject and causes a crash. This patch implements a poor man's dynamic_cast in QQmlVMEMetaObject::parentVMEMetaObject to fix the crash. Other casts of parent.asT1() are changed to use parentVMEMetaObject as well even though in those cases the static_cast is guaranteed by the context. Task-number: QTBUG-27334 Change-Id: I5982fc273ccf466960ce54974cff5662e6ab605a Reviewed-by: Matthew Vogt <mattvogt2@gmail.com> Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Examples: Fix calcqlatr.qmlprojectKai Koehne2012-09-281-1/+1
| | | | | Change-Id: I6a88f4f5c774962ad6c022954e0070d2a2eaadbd Reviewed-by: Christiaan Janssen <christiaan.janssen@digia.com>
* Added lancelot-based scenegraph rendering regression testaavit2012-09-27208-0/+9671
| | | | | Change-Id: I6718d00ba96dc9c96dac82de4ded9228f6bfb990 Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
* Update qMetaType helpers usage.Jędrzej Nowacki2012-09-271-8/+8
| | | | | | | | QtDeclarative is using private meta type api to register custom types, but the helper functions were updated to a new signature. Change-Id: I467b283b5b1ccdad8ebd1a2bb651e8ad59b9c55d Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* HTML template: Updated copyright notice from Nokia to Digia PlcJerome Pasion2012-09-262-28/+3
| | | | | Change-Id: I0656a4331e3a6f6a6a527500565c73f50b61f8d1 Reviewed-by: Martin Smith <martin.smith@digia.com>
* Doc: Removed the verbs from the page and section titlesVenugopal Shivashankar2012-09-261-15/+13
| | | | | | Change-Id: I9f8b98e40340a5f871f7a66a3d7ea63675e21d34 Reviewed-by: Martin Smith <martin.smith@digia.com> Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Work around mis-optimisation on QNX/SGX in AA vertex shaderSean Harmer2012-09-262-8/+24
| | | | | | | | | | | | | | | | | | | | | | | | The new AA algorithm which is implemented in the vertex shader of SmoothColorMaterialShader and SmoothTextureMaterialShader exposes a driver bug in the glsl compiler/optimiser for the GPU used in the BlackBerry PlayBook. The bug results in the if (scale < 0.0) scale = 1.0 code always being executed even when the condition is false. This leads to massive corrupion of Image, Rectangle, and BorderImage elements when the antialiasing property is enabled. This commit works around the compiler bug by refactoring the vertex shader to explicitly include an else clause. The check for negative values is now performed on the numerator only as the denominator is dot(dir, dir) which is always positive (square of magnitude of dir vector). This gives the correct behaviour on all platforms (that I have access to). Change-Id: I236542c9b59ff2915e95cbd9300b442be316bba9 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>