summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative
Commit message (Collapse)AuthorAgeFilesLines
* Qml Debugging: Only enable if explicitly requestedv4.7.1Jason McDonald2010-11-035-2/+23
| | | | | | | | | | | | | | | | | | | Enable the remote debugging of QDeclarativeEngines only after QDeclarativeDebugHelper::enableDebugging() has been called. Approved by 4.7 Program Team. Reviewed-by: Alessandro Portale Task-number: QTBUG-13762 (cherry picked from commit b2016bbfc9c7389e7b64451417395ceba96af21f) Conflicts: src/s60installs/bwins/QtDeclarativeu.def src/s60installs/eabi/QtDeclarativeu.def
* Update license headers to release version.Jason McDonald2010-10-1884-1092/+1092
|
* Ensure PathView updates positions when path changes.Michael Brasser2010-10-082-0/+36
| | | | | | | | Fixes regression caused by optimization added in commit 35a51442ed21f58c06b21293eeb56e843251ee82. Task-number: QTBUG-14239 Reviewed-by: Martin Jones
* QDeclarativeDebug: Make autotests more robustKai Koehne2010-10-042-13/+10
| | | | | | | | Always flush sockets after sending data, and make autotests more robust by using busy wait. Reviewed-by: Christiaan Janssen (cherry picked from commit cfe198948f1e4867918176df38b3e0b49757a4b8)
* QDeclarativeDebugClient: Make sure status is consistentKai Koehne2010-10-042-1/+7
| | | | | | | | | | When statusChanged() is called during handsake state() was not the same as the argument passed. Fix this by setting gotHello = true _before_ notifying the clients. Reviewed-by: Christiaan Janssen Task-number: QTBUG-14087 (cherry picked from commit a1f050fe4217d3a642ab7f4df8e50c21aa51689c)
* Make QmlDebug protocol more robustKai Koehne2010-10-045-69/+58
| | | | | | | | | | | | | | | | | | | | | | | The protocol so far was client->server only. That is, there was no sane way for a client to check whether a plugin on the server (service) was available or not. E.g. calling Client::setEnabled(true) 'succeeded', without a check whether there is actually a service to talk to. The new protocol replaces this shortcoming by a service discovery mechanism: Both client & service announce their available plugins at handshake time, and later on if there are changes. The status is reflected in Client::status() and Service::Status() , which are either NotConnected - no network connection, or not registered properly Unavailable - TCP/IP connection works, but no plugin with the same name on the other side Enabled - You can connect to plugin on other side The status changes happen automatically (no setEnabled() anymore). Furthermore a version ID was added to the handshake, so that we can extend the protocol further in the future :) (cherry picked from commit fd9771c29d401d88779ab7c5d7715c9ca41dd723)
* Autotest that new "import Qt 4.7"s aren't added accidentallyAaron Kennedy2010-10-011-0/+57
| | | | | Task-number: QTBUG-13799 (cherry picked from commit f7a439a0a00b0bdd6ebeff8bfd5ee2285eab1398)
* Replace "import Qt 4.7" with "import QtQuick 1.0"Aaron Kennedy2010-10-011-1/+1
| | | | | Task-number: QTBUG-13799 (cherry picked from commit 1f43e68c4ca5b28444b046deff1658b1b4b1923d)
* Add test for Qt 4.7 moduleAaron Kennedy2010-10-015-1/+183
| | | | | | Task-number: QTBUG-13799 Reviewed-by: Martin Jones (cherry picked from commit 6f35701275ab0cd80daec45b3407725b10571693)
* Replace all occurances of "Qt 4.7" with "QtQuick 1.0"Jason McDonald2010-10-01713-1009/+1009
| | | | | | | | | | | | | | | | Task-number: QTBUG-13799 Reviewed-by: Martin Jones (cherry picked from commit 49452ad6b22e080b1dfdfde38c21c48bb910a1ae) Conflicts: tests/auto/declarative/qdeclarativeconnection/data/error-object.qml tests/auto/declarative/qdeclarativeconnection/data/error-property.qml tests/auto/declarative/qdeclarativeconnection/data/error-property2.qml tests/auto/declarative/qdeclarativeconnection/data/error-syntax.qml tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp tests/auto/declarative/qdeclarativeqt/data/quit.qml tests/auto/declarative/qdeclarativeview/data/error1.qml
* If a type is registered under several names, share the attached property objectAaron Kennedy2010-10-013-0/+28
| | | | | Task-number: QTBUG-13799 (cherry picked from commit 746954581f06e0bca98f25eb95dca09c663d47bf)
* QDeclarativeDebugService: Add bc autotestKai Koehne2010-10-013-2/+95
| | | | | | | Although it's a private header we use qdeclarativedebugservice_p.h in creator / qmljsdebugger library. Working with a copy of the header in the autotest hopefully catches some bc breakages. (cherry picked from commit 31dcf2b4028b1f76301fc69fccff0a9474a0a135)
* Fix crash when trying to append a null transform to QDeclarativeItem.Michael Brasser2010-10-012-0/+25
| | | | | Task-number: QTBUG-13893 (cherry picked from commit 085a121cb1ebba38d62c924500dbc71806b29b3c)
* Mitigate private header problems in QtCreator by adding semi-private APIKai Koehne2010-09-272-0/+89
| | | | | | | | | | | Add a semi-private API to get QScriptEngine for a QDeclarativeEngine. So far the qmljsdebugger lib in QtCreator accessed the script engine via QDeclarativeEnginePrivate. Replace this by a minimal API that is still in a private header, where we nevertheless can make some BC checks/guarantees. Aaron Kennedy agreed with the idea. Task-number: QTCREATORBUG-2179 (cherry picked from commit c1a7deedf1628e0dd3a5fbf92d97c4151d17fb5a)
* Mitigate private header problems in QtCreator by adding semi-private APIKai Koehne2010-09-273-0/+98
| | | | | | | | | | | Add a semi-private API to get QScriptEngine for a QDeclarativeEngine. So far the qmljsdebugger lib in QtCreator accessed the script engine via QDeclarativeEnginePrivate. Replace this by a minimal API that is still in a private header, where we nevertheless can make some BC checks/guarantees. Aaron Kennedy agreed with the idea. Task-number: QTCREATORBUG-2179 (cherry picked from commit 63c4c0449361ced03838e51d18e1113740f27fa9)
* Autotest and small fix for QDeclarativeFontLoader.Yann Bodson2010-09-232-0/+42
| | | | (cherry picked from commit eef26bc8521da62db0dced6796eceb7c27f64160)
* Fix a crash in QDeclarativeVisualDataModelJoona Petrell2010-09-232-0/+41
| | | | | | Task-number: QTBUG-13754 Reviewed-by: Martin Jones (cherry picked from commit 46e49547f8e4614cd504b0af0d52d4e2768b57c3)
* Make qml debugging work with command line argumentsLasse Holmstedt2010-09-233-6/+41
| | | | | | | | | | | The environment variables do not work for Symbian devices, so without this change, QML debugging cannot be done on them. In addition, configure now contains an option to disable qml debugging entirely, due to it being a major security risk. Reviewed-by: kkoehne (cherry picked from commit a9e5329168cd9113bf41293c05193d8b099494c6)
* Improve error messagesBea Lam2010-09-221-4/+4
| | | | (cherry picked from commit af29c555a29ebcdb1d962176912478212c9c7e65)
* Changes to objects returned from get() should emit itemsChanged() soBea Lam2010-09-221-20/+287
| | | | | | | | | | | | that the view is updated (currently the model data changes but the view does not). In flat-model mode, get() now returns a QScriptClass-type object so that changes to the returned object are received, and for nested-model mode, the fix adds a QDeclarativeOpenMetaObject subclass and ModelNode::listIndex so that itemsChanged() can be emitted when the node data changes. Task-number: QTBUG-12363 (cherry picked from commit c2bbef949126826f0330c69dff1a8c96919f69a5)
* Moving items in a PathView caused PathView.onPath to be set to false.Martin Jones2010-09-212-8/+16
| | | | | | | | | Check that we no longer hold a reference to the item before setting onPath to false. Task-number: QTBUG-13689 Reviewed-by: Michael Brasser (cherry picked from commit 7e6b2b2b95bc1db77544b898ec45ea4a2683e435)
* Models with a single role may not update due to "modelData" conflict.Martin Jones2010-09-163-0/+104
| | | | | | | | | Models with a single role also have a modelData property added. These role names both ended up in a hash, resulting in only one or the other updating. Now we handle modelData specially. Task-number: QTBUG-13664 Reviewed-by: Michael Brasser
* Fix test.Michael Brasser2010-09-161-2/+0
|
* Restore any absolute geometry changed by AnchorChanges when returningMichael Brasser2010-09-152-0/+52
| | | | | | to the base state. Task-number: QTBUG-11834
* Unit tests for Bauhaus enablersThomas Hartmann2010-09-142-0/+166
| | | | See 6454f4db1697af1d36ad4c0ea83ccd0bb490fd39
* In ParentChange treat flip in x and y as a 180 degree rotationMartin Jones2010-09-142-0/+45
| | | | | | | The two are equivalent, but flip doesn't work in ParentChange. Task-number: QTBUG-13554 Reviewed-by: Michael Brasser
* When onDoubleClicked: is handled don't emit a second onPressed/onClickedMartin Jones2010-09-132-0/+46
| | | | | Task-number: QTBUG-12250 Reviewed-by: Michael Brasser
* Add test for view velocity update on setCurrentIndex()Martin Jones2010-09-132-0/+4
| | | | Task-number: QTBUG-13543
* Autotests cleanup.Yann Bodson2010-09-106-107/+52
|
* Autotest for QTBUG-13454.Yann Bodson2010-09-101-14/+54
|
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Alan Alpert2010-09-091-5/+1
|\
| * Fix qdeclarativeimageprovider autotest compilation on SymbianJoona Petrell2010-09-091-5/+1
| | | | | | | | | | Task-number: Reviewed-by: Michael Brasser
* | Fix SmoothedAnimation test and docsAlan Alpert2010-09-095-6/+889
|/ | | | | | | | | The SmoothedAnimation visual test was misleading, and has been expanded to include more common use cases. The property documentation was also slightly extended. This should help solve the confusion in the related task. Task-number: QTBUG-12114
* Don't cause repaints during painting in Text elementMartin Jones2010-09-081-0/+11
| | | | | | | | | | Calling prepareGeometryChange in a paint event is a bad idea and was causing jerky scrolling. There is no longer any need for the removed code since we don't use imgCache.size() to determine boundingRect() anymore. Task-number: QTBUG-13453 Reviewed-by: Joona Petrell
* Fix AnchorAnimation for multiple AnchorChanges with dependancies.Michael Brasser2010-09-063-0/+515
| | | | | | | When rewinding, don't reapply bindings, only values. This is consistent with how we handle rewinding other property bindings. Task-number: QTBUG-13398
* Fix PathView item position on insertion and removal.Martin Jones2010-09-061-8/+11
| | | | | | | Ensure the offset is adjusted to account for the new or removed items. Also minor optimizations to delegate updates. Task-number: QTBUG-13416
* Add test for ListView positioning when all visible items are removed.Martin Jones2010-09-051-1/+30
| | | | Task-number: QTBUG-12664
* Missing fileAaron Kennedy2010-09-031-0/+14
|
* qreal == float fixesAaron Kennedy2010-09-031-1/+1
| | | | QTBUG-11853
* Don't modify the signal order on the second dynamic meta object passAaron Kennedy2010-09-031-0/+12
| | | | QTBUG-13374
* Support passing QObject derived types to QML methodsAaron Kennedy2010-09-034-1/+52
| | | | QTBUG-13047
* Don't overflow the unreferenced cost counterAaron Kennedy2010-09-021-0/+27
| | | | QTBUG-13345
* Support JS "in" operator on QML objectsAaron Kennedy2010-09-012-0/+18
| | | | QTBUG-12837
* Only emit change signal when variant properties actually changeAaron Kennedy2010-09-012-1/+28
| | | | QTBUG-12601
* Prevent calling deleteLater() from QMLAaron Kennedy2010-08-312-0/+24
| | | | QTBUG-13045
* Ignore non-scriptable properties in QMLAaron Kennedy2010-08-3110-6/+61
| | | | QTBUG-13043
* Don't double call classBegin()Aaron Kennedy2010-08-315-1/+41
| | | | QTBUG-13114
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Aaron Kennedy2010-08-317-7/+131
|\
| * Revert "Add 'cached' property to Image."Yann Bodson2010-08-311-20/+9
| | | | | | | | | | | | This will have to go in 4.8. This reverts commit 3928cb20ecc63ed21cdb122388b200c9ab8e7cad.
| * Add 'cached' property to Image.Yann Bodson2010-08-311-9/+20
| | | | | | | | | | Task-number: QTBUG-7300 Reviewed-by: Aaron Kennedy