summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into ↵Qt Continuous Integration System2010-06-172-3/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4.7-integration * '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1: doc: Added more DITA output to the XML generator Usefully convert from QtScript object/array to QVariant document QSslSocket::systemCaCertificates() change in changelog Implement QIODevice::peek() using read() + ungetBlock(). Allocate the memory for QtFontSize when count > 1 doc: Added more DITA output to the XML generator Defer allocation of GIF decoding tables/stack. Make sure only started gestures can cause cancellations Updated JavaScriptCore from /home/khansen/dev/qtwebkit-qtscript-integration to javascriptcore-snapshot-16062010 ( 8b2d3443afca194f8ac50a63151dc9d19a150582 ) qmake: Fix CONFIG += exceptions_off with the MSVC project generator. Fix some kind of race condition while using remote commands. Work around ICE in Intel C++ Compiler 11.1.072 Reduce the memory consumption of QtFontStyle
| * Usefully convert from QtScript object/array to QVariantKent Hansen2010-06-172-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For arrays, the conversion would crash if the array was cyclic. Introduce a set that keeps track of which objects are being converted, and return an empty list when a cycle is detected. For other types of objects, the object was previously attempted to be converted to a primitive, which typically meant you would get the string representation ("[object Object]"), since most (practically all) objects can be converted to a string -- not useful at all. Change the conversion so it converts the object to a QVariantMap instead. This was already done for slots that took a QVariantMap as argument, but only one level deep. Make the conversion recursive, using the same mechanism as for arrays to detect cycles. This change also means that you get a meaningful JS object => QVariant => JS object roundtrip. It also aligns the behavior with the Qt WebKit bridge. Update the documentation to describe the new behavior. The 4.7 changelog will also be updated under "important behavioral changes". This change exposed an issue with one of the QML autotests: A JS object was assigned to a QVariant property, which caused it to be converted to a string (rather than a QVariantMap) -- just shows that the previous behavior was unintuitive). Later, this variant property is compared to another object, the intention being to compare the _properties_ of the two objects; but because the variant property contained a string, this would cause the other operand (object) to be converted to a string as well ("[object Object]"), causing a meaningless test pass. Change the test to deserialize both objects using JSON.stringify, and compare the resulting strings, so that actual JS object => QVariant(Map) => JS object roundtrip is tested (the intention). Task-number: QTBUG-3511 Reviewed-by: Olivier Goffart
* | Add test for model data changes.Martin Jones2010-06-172-2/+47
| |
* | Minor demo fixesAlan Alpert2010-06-161-4/+5
| | | | | | | | Found some minor demo issues while testing a TextInput change.
* | Fix autoScroll implementationAlan Alpert2010-06-161-1/+0
|/ | | | | | | | | | | The scrolling should not be calculated inside the paint event, this leads to some incorrect behaviour. It is now calculated separately when needed. Patch actually written by Alexis, and I reviewed it. Task-number: QTBUG-11127 Reviewed-by: Alexis Ménard
* Fix bug with childrenRect resizing on startup.Michael Brasser2010-06-152-0/+40
| | | | | | This also optimizes the implementation. Task-number: QTBUG-11383
* Fix test - sizeHint should not change after initial load. Also useBea Lam2010-06-111-5/+3
| | | | QTRY_COMPARE for some tests.
* Fix qmlviewer test failure on windowsMartin Jones2010-06-111-8/+8
| | | | Attempted to make window size smaller than Windows minimum.
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Martin Jones2010-06-101-0/+17
|\
| * Improve test stability.Warwick Allison2010-06-101-0/+17
| |
* | Stablize qmlviewer testMartin Jones2010-06-101-13/+14
|/
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Martin Jones2010-06-091-0/+1
|\
| * Doc improvements: move some example code to snippets, add screenshots,Bea Lam2010-06-091-0/+1
| | | | | | | | other minor doc fixes
* | Fix crash when changing ListView model with highlightRangeMode: ↵Martin Jones2010-06-092-0/+15
|/ | | | | | ListView.StrictlyEnforceRange Task-number: QTBUG-11328
* Fix autotest.Michael Brasser2010-06-091-0/+2
|
* Fix drawing flicker on Qml Viewer startupJoona Petrell2010-06-092-0/+192
| | | | | Task-number: QTBUG-10251 and QTBUG-11156 Reviewed-by: Martin Jones
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Martin Jones2010-06-08121-160/+365
|\
| * Make declarative autotests compile on Symbian abld build systemJoona Petrell2010-06-08121-160/+365
| | | | | | | | | | Task-number: Reviewed-by: Martin Jones
* | Add test for PropertyChanges with attached properties.Martin Jones2010-06-082-0/+63
|/ | | | Task-number: QTBUG-11283
* Keep reported point/pixel size in sync.Michael Brasser2010-06-071-1/+3
| | | | | | | This allows you to, for example, bind to a Text's font.pixelSize, even if one was never explicitly set. Task-number: QTBUG-11111
* Remove unnecessary CloseSoftwareInputPanel events after TextEdit or ↵Joona Petrell2010-06-072-52/+93
| | | | | | | TextInput has lost focus Task-number: Reviewed-by: Warwick Allison
* Ensure state operations assigned to the default state are triggeredMichael Brasser2010-06-072-0/+42
| | | | | | when returning to that state. Task-number: QTBUG-11228
* Fix regression in input panel autotestsJoona Petrell2010-06-072-2/+12
|
* Revert to Portrait/Landscape terminology for Orientation enum, withBea Lam2010-06-041-10/+10
| | | | | | additional PortraitInverted and LandscapeInverted values. TopUp etc. only indicates rotation which makes it difficult to resize the window according to whether the device is in Portrait or Landscape orientation.
* Improve input panel handling in declarative demos and examplesJoona Petrell2010-06-032-12/+0
| | | | | Task-number: QTBUG-11157 Reviewed-by: Warwick Allison
* Add header and footer to GridViewMartin Jones2010-06-031-0/+13
| | | | | | Also document them for both ListView and GridView Task-number: QTBUG-11191
* QML viewer now supports TopUp, TopDown, RightUp and LeftUp orientationsBea Lam2010-06-022-6/+15
| | | | | | | | instead of Portrait/Landscape. The new orientations are named the same as the orientations in the QtMobility sensors module. Task-number: QTBUG-11106 Reviewed-by: akennedy
* Take into account platform differences in input panel supportJoona Petrell2010-06-022-30/+136
| | | | | Task-number: Reviewed-by: Warwick Allison
* Missed file.Warwick Allison2010-06-011-0/+8
|
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Martin Jones2010-06-011-0/+43
|\
| * Test positionAt.Warwick Allison2010-06-011-0/+43
| | | | | | | | | | Task-number: QTBUG-11127 Task-number: QTBUG-11054
* | Avoid refilling view during model change.Martin Jones2010-06-011-0/+48
|/ | | | | | | | The view position is reset to 0 after clear()ing, but this results in refill() being called, effectively undoing the clear(). Fix is to make the model invalid before resetting position. Task-number: QTBUG-11105
* Simplify selection setting. Make TextInput more like TextEdit.Warwick Allison2010-05-314-69/+31
| | | | | | By making selectionStart/End read-only, and adding adding select(). Task-number: QTBUG-11056
* Add selection methods to TextEditWarwick Allison2010-05-303-2/+89
| | | | | | | | Sufficient to allow different selection look and feel (see whacky example) Task-number: QTBUG-10968 Reviewed-by: Michael Brasser Reviewed-by: Alan Alpert
* Active window focus gain should not open virtual keypadJoona Petrell2010-05-282-4/+22
| | | | | Task-number: Reviewed-by: Martin Jones
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integrationQt Continuous Integration System2010-05-272-2/+10
|\ | | | | | | | | | | | | | | * '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: Improve QML framerate debugging If a pathview delegate changes size, reposition center on path Remove deprecated Flickable::overshoot property. Don't display unnecessary copyright headers in doc
| * If a pathview delegate changes size, reposition center on pathMartin Jones2010-05-272-2/+10
| | | | | | | | Task-number: QTBUG-11006
* | Merge remote branch 'origin/4.7' into oslo-staging-1Aaron McCarthy2010-05-2714-63/+262
|\ \ | |/ | | | | | | Conflicts: doc/src/declarative/advtutorial.qdoc
| * Allow js files with '.pragma library' to be used from WorkerScriptBea Lam2010-05-267-29/+76
| |
| * Open input panel on press if TextInput or TextEdit are already focused but ↵Joona Petrell2010-05-262-0/+18
| | | | | | | | | | | | | | panel has been closed Task-number: Reviewed-by: Martin Jones
| * Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Warwick Allison2010-05-264-31/+165
| |\
| | * Fix horizontal/verticalCenter anchors bug.Yann Bodson2010-05-262-0/+25
| | | | | | | | | | | | | | | Task-number: QTBUG-10999 Reviewed-by: Michael Brasser
| | * Add a way to control when software input panels are shown in TextInput and ↵Joona Petrell2010-05-262-31/+140
| | | | | | | | | | | | | | | | | | | | | TextEdit elements Task-number: QTBUG-10841 Reviewed-by: Warwick Allison
| * | Fix TextEdit clipping when not wrapped. Rename most-useful-wrap-mode to "Wrap".Warwick Allison2010-05-263-3/+3
| |/
* | escape backslashesOswald Buddenhagen2010-05-261-1/+1
|/ | | | this makes windows-style path specs *ugly*. that's intentional. :-P
* Revert "Reading/writing a non-existent property throws an exception"Aaron Kennedy2010-05-254-14/+8
| | | | This reverts commit 2b3e7706f4459569520c77b9fb3ff2bc006e60f1.
* Reading/writing a non-existent property throws an exceptionAaron Kennedy2010-05-254-8/+14
| | | | QTBUG-10659
* FixWarwick Allison2010-05-251-4/+4
|
* Added autotest for Component.createObject() without Qt.createComponent()Alan Alpert2010-05-242-0/+44
| | | | | | Also augmented the docs for both functions a little. Task-number: QTBUG-10926
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Warwick Allison2010-05-243-3/+23
|\