summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Make sure we update Loader size if item size changes after creation.Martin Jones2011-02-022-0/+31
| | | | | Task-number: QTBUG-17114 Reviewed-by: Bea Lam
* PinchArea sometimes failed.Martin Jones2011-02-011-24/+0
| | | | | | | | Almost always failed on Mac and could fail on other systems due to QDeclarativePinchEvent::m_accepted not being initialized. Task-number: QTBUG-15491 Reviewed-by: Bea Lam
* Add a mouseSelectionMode property to TextEdit and TextInput.Andrew den Exter2011-02-018-117/+630
| | | | | | | | | | | Adds an option to do per word selection when selectByMouse is true. Also changes the selection behavior so that the first word selected remains selected when the direction of the selection changes which is more consistent with other implementations including the existing per word selection in QTextEdit. Task-number: QTBUG-16283 Reviewed-by: Martin Jones
* Add missing versioning tests for new QtQuick 1.1 properties/methods.Martin Jones2011-01-315-4/+171
| | | | | Task-number: QTBUG-15489 Reviewed-by: Bea Lam
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integrationQt Continuous Integration System2011-01-30143-195/+6706
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: (151 commits) expect fail for some PinchArea tests on mac Allow functions to be passed in as values for grouped properties Fix lineHeight autotests. Update Docs, Examples and Demos for new CreateObject overloadable Adding support for group properties in Component::CreateObject() Update test, versioning is fixed so expect-fail no longer needed Test failure fixed - remove XFAIL photoviewer needs QtQuick 1.1 for Image::cache disable some pincharea tests on mac temporarily Fix failing test on mac for Qt.application Fix test breakage for qdeclarativeworkerscript Fix typo in error message. Doc fix for lineHeight. Add support for line spacing in Text element. Fixing right-to-left text in Text and TextInput Fix MaximumLineCount in Text and add tests Ensure simple objects also get the appropriate property cache Add test for Loader implicitWidth/implicitHeight Don't crash when appending a null item Test for passing functions to createObject() for property bindings ...
| * Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integrationQt Continuous Integration System2011-01-29143-195/+6706
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: (151 commits) expect fail for some PinchArea tests on mac Allow functions to be passed in as values for grouped properties Fix lineHeight autotests. Update Docs, Examples and Demos for new CreateObject overloadable Adding support for group properties in Component::CreateObject() Update test, versioning is fixed so expect-fail no longer needed Test failure fixed - remove XFAIL photoviewer needs QtQuick 1.1 for Image::cache disable some pincharea tests on mac temporarily Fix failing test on mac for Qt.application Fix test breakage for qdeclarativeworkerscript Fix typo in error message. Doc fix for lineHeight. Add support for line spacing in Text element. Fixing right-to-left text in Text and TextInput Fix MaximumLineCount in Text and add tests Ensure simple objects also get the appropriate property cache Add test for Loader implicitWidth/implicitHeight Don't crash when appending a null item Test for passing functions to createObject() for property bindings ...
| | * expect fail for some PinchArea tests on macBea Lam2011-01-281-0/+15
| | |
| | * Allow functions to be passed in as values for grouped propertiesBea Lam2011-01-282-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using QDeclarativeProperty::write() works for grouped properties but stops functions values from being passed in, and using QScriptValue::setProperty() on the object being created allows functions to be passed in but doesn't work for grouped properties. This fix walks down the tree for grouped properties to find the property that should be set so that functions can be set for grouped property values. Reviewed-by: Aaron Kennedy
| | * Fix lineHeight autotests.Yann Bodson2011-01-281-4/+4
| | |
| | * Adding support for group properties in Component::CreateObject()Christopher Ham2011-01-282-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | The QScriptValue overload for Component::CreateObject() should be able to set group properties. This change also allows for property binding from Javascript to continue to function. Task-number: QTBUG-13087 Reviewed-by: Bea Lam
| | * Test failure fixed - remove XFAILMartin Jones2011-01-281-2/+0
| | |
| | * disable some pincharea tests on mac temporarilyBea Lam2011-01-281-0/+9
| | |
| | * Fix failing test on mac for Qt.applicationBea Lam2011-01-281-0/+4
| | | | | | | | | | | | setActiveWindow(0) on mac does not deactivate the current application.
| | * Add support for line spacing in Text element.Yann Bodson2011-01-282-0/+47
| | | | | | | | | | | | | | | | | | | | | This change adds the lineHeight and lineHeightMode properties. Task-number: QTBUG-14296 Reviewed-by: Martin Jones
| | * Fixing right-to-left text in Text and TextInputChristopher Ham2011-01-286-0/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | The Text and TextInput items should now automatically flip the alignment of right-to-left text. Autotests also added to ensure the text is on the correct side (added for TextInput also). Task-number: QTBUG-15880 Reviewed-by: Martin Jones
| | * Fix MaximumLineCount in Text and add testsChristopher Ham2011-01-2825-0/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed MaximumLineCount not truncating when wrapMode was not set. Visual autotests were added to test various possible options for maximumLineCount. Task-number: QTBUG-12305 Reviewed-by: Michael Brasser
| | * Ensure simple objects also get the appropriate property cacheAaron Kennedy2011-01-282-0/+23
| | | | | | | | | | | | Task-number: QTBUG-13849
| | * Add test for Loader implicitWidth/implicitHeightMartin Jones2011-01-282-0/+46
| | |
| | * Don't crash when appending a null itemAaron Kennedy2011-01-272-0/+14
| | | | | | | | | | | | Task-number: QTBUG-16871
| | * Merge branch 'qtquick11' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11Martin Jones2011-01-272-2/+38
| | |\
| | | * Test for passing functions to createObject() for property bindingsBea Lam2011-01-272-2/+38
| | | |
| | * | Add missing revisions for QtQuick 1.1 additionsMartin Jones2011-01-274-3/+126
| | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-15279 Reviewed-by: Michael Brasser
| | * | Merge branch 'qtquick11' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11Martin Jones2011-01-2715-46/+270
| | |\ \ | | | |/
| | | * Fix righ-to-left support in text components.Christopher Ham2011-01-272-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In text, textEdit and textInput, the layout of the text should automatically align to the right if the it is deemed to be right-to-left text. Task-number: QTBUG-15880 Reviewed-by: Bea Lam
| | | * Don't load components until the Loader component itself is completedBea Lam2011-01-271-40/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously components were loaded as soon as setSource() or setSourceComponent() were called, even if the Loader component was not complete. If a source component had been set, the itemChanged(), statusChanged() etc. signals would be emitted before the Loader would be complete and before the internal item had been sized. If a source had been set via url, these signals were not emitted at all. It also caused loaded() to be emitted twice for components set by setSourceComponent(). Task-number: QTBUG-16319 Reviewed-by: Martin Jones
| | | * Allow property bindings to be easily created from JavaScriptBea Lam2011-01-273-15/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Properties can now be assigned a function that returns the binding value. Task-number: QTBUG-14964 Reviewed-by: Aaron Kennedy
| | | * Merge branch 'qtquick11' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11Bea Lam2011-01-2714-57/+53
| | | |\
| | | * \ Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11Bea Lam2011-01-2711-85/+129
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/declarative/graphicsitems/qdeclarativegridview.cpp src/declarative/graphicsitems/qdeclarativelistview.cpp
| | * | | | Setting the size of a loader overwrote its implict size.Martin Jones2011-01-272-0/+36
| | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the created item does not have a valid width/height then our implictWidth/Height should be the same as the items implict size. Task-number: QTBUG-16928 Reviewed-by: Bea Lam
| | * | | Implement property versioning inside the declarative engineAaron Kennedy2011-01-2714-57/+53
| | |/ / | | | | | | | | | | | | Task-number: QTBUG-13451
| | * | Notify that pressed has changed before calling the onClicked handler.Michael Brasser2011-01-252-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a more natural ordering, and makes it trivial to control different state groups with pressed and onClicked. Reviewed-by: Martin Jones
| | * | Expose implicitWidth and implicitHeight properties of Item.Martin Jones2011-01-243-0/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Overridden as readonly for elements that have an inherent implicit size such as Text, TextEdit, TextInput, positioners, Loader. Task-number: QTBUG-14957 Reviewed-by: Michael Brasser
| | * | Add list of new properties/methods in QtQuick 1.1Martin Jones2011-01-241-0/+19
| | | |
| | * | Rename Image::cached to 'cached' (and QDeclarativePixmap::Cached also)Bea Lam2011-01-191-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to keep consistent property naming consistent. E.g. Image has 'smooth', 'mirror' properties rather than 'smoothed', 'mirrored'. For consistency QDeclarativePixmap::Cached was renamed as well. Reviewed-by: Martin Jones
| | * | Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11Martin Jones2011-01-191662-4777/+2943
| | |\ \
| | * \ \ Merge branch 'qtquick11' of scm.dev.nokia.troll.no:qt/qt-qml into qtquick11Alan Alpert2011-01-183-1/+16
| | |\ \ \
| | | * | | Fix declarative autotest compilation on SymbianJoona Petrell2011-01-182-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: Reviewed-by: Martin Jones
| | | * | | Cleanup view at end of auto test.Martin Jones2011-01-181-0/+3
| | | | | |
| | * | | | Implement layoutDirection property on Row, Grid, FlowAlan Alpert2011-01-189-10/+489
| | |/ / / | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-11042 Reviewed-by: Joona Petrell
| | * | | Add canPaste property to TextInput and TextEditAlan Alpert2011-01-172-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-16190 Reviewed-by: Martin Jones
| | * | | QDeclarativeText has new multiline propertiesChristopher Ham2011-01-142-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LineCount should return the number of lines currently being displayed. Setting maximumLineCount limits the number of lines that will be shown Truncated will return true if the text has been elided normally, or if the lines have been limited due to maximumLineCount. Task-number: QTBUG-12305 Reviewed-by: Michael Brasser
| | * | | QDeclarativeDebug: Extend autotestKai Koehne2011-01-111-0/+4
| | | | | | | | | | | | | | | | | | | | Check that sendMessage doesn't crash if service isn't connected.
| | * | | Add methods to position view at beginning or end.Martin Jones2011-01-114-0/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Takes into account header/footer. Task-number: QTBUG-16213 Reviewed-by: Michael Brasser
| | * | | Fix Qt.formatTime() to accept QTime valuesBea Lam2011-01-113-53/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QScriptValue::toDateTime() does not work for QTime values. Task-number: QTBUG-16492 Reviewed-by: Michael Brasser
| | * | | set() and setProperty() should not always trigger change signalsBea Lam2011-01-111-4/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix set() and setProperty() to only trigger itemsChanged(), and the the <property>Changed signals for items returned by get(), if the new value is different from the old one. The exception to this are list values, as it is inefficient to check the sublists and also the model classes are due to be revised. This also fixes models used with a WorkerScript to emit itemsChanged() with the correct roles. Task-number: QTBUG-14620 Reviewed-by: Michael Brasser
| | * | | Add versioning for new Flickable methods.Martin Jones2011-01-111-0/+43
| | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-15148
| | * | | Disable dragging text in TextEdit.Andrew den Exter2011-01-113-0/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a dragEnabled property to QTextControl so text dragging can optionally be disabled. Task-number: QTBUG-16248 Reviewed-by: Martin Jones
| | * | | Fix word selection in QLineControlAlan Alpert2011-01-108-0/+1052
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Word selection occasionally selected the word beforehand as well, in both QLineEdit and TextInput. Visual Test included to verify behavior. Task-number: QTBUG-15818 Reviewed-by: Martin Jones
| | * | | Add selection modes to TextEdit and TextInput.Andrew den Exter2011-01-102-2/+325
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an overload for moveCursorSelection which takes a parameter specifying whether to update the selection with individual characters or whole words. Task-number: QTBUG-16283 Reviewed-by: Martin Jones
| | * | | Add layoutDirection property to Qt.application elementJoona Petrell2011-01-071-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-16424 Reviewed-by: Martin Jones