aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktextinput
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix right aligned cursor position in TextInput with geometry changesPekka Vuorela2012-06-252-1/+8
| | | | | | | | Updating the text layout cannot be omitted with NoWrap because line width needs to be updated even with empty content. Change-Id: Ia9b168d6cfe7680cc1c9e7fa641ce7528d2b6d5e Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Remove the open and closeSofwareInputPanel functions.Andrew den Exter2012-06-221-8/+0
| | | | | | | | | Functionality is provided by the global Qt.application.inputMethod object. Task-number: QTBUG-21449 Change-Id: I75c082bcbe44c8834ccaf966a3f9a09ab91ec290 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Ensure the cursor delegate position is updated on text changes.Andrew den Exter2012-06-054-2/+22
| | | | | Change-Id: I7518aa5969ea45538feccb87f4c296db6b7d6944 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Update the cursor rectangle when password echo timer expires.Andrew den Exter2012-05-292-0/+17
| | | | | | | | Ensures the cursor is positioned correctly is if the echo mask glyph has a different width to the character it replaced. Change-Id: I924234d4ae29cbb2e61638918005fcc3dc230993 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Remove QSKIP from test.Andrew den Exter2012-05-181-1/+0
| | | | | | | | | Fix merged in qtbase. Task-number: QTBUG-24801 Change-Id: I41de3b20938bd63861fba14a43b23ed8d91414d5 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Skip failing test.Andrew den Exter2012-05-171-4/+1
| | | | | | | Fix in qtbase can't be merged until the QEXPECT_FAIL's are removed. Change-Id: Id416627cce3074549eda13331b7a88cc0313a910 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Defer construction of TextEdit/TextInput delegates.Andrew den Exter2012-05-141-2/+7
| | | | | | | | | | | | | | | Don't create instances of the delegate components until the item gains focus, or the cursorVisible property is set to true. Cursor delegates are typically small and relatively fast to create and so won't have a significant cost during a one off focus in event, but that cost can still add up when creating a number of TextInputs or TextEdits at once. If a delegate that is instantiated immeditately is required it is possible to instead create a child item and bind to the cursorRectangle and cursorVisible properties. Change-Id: I5ec2b5b6a30e534aee3dd5a58c6a5ac0686f5ce2 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Ensure the cursor rectangle is updated when preedit text changes.Andrew den Exter2012-05-032-5/+19
| | | | | | | | | Updating only when the cursor position changes isn't enough because changing pre-edit text changes the width of the pre-edit area and the x offset of all cursor positions within it. Change-Id: I3c0a5e4ad4714a903ca84c1a25374491f34d95a0 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* QQuickTextInput aligment to follow input method on neutral contentPekka Vuorela2012-04-271-0/+9
| | | | | | | | | | | | Earlier input method was followed only on empty editor. This made inputting one space character with arabic to be visualized left to right. As related change arabic numbers are aligned right even though the flow goes left to right. Change-Id: I36448949569f6290faad69de14df424575d8b97e Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Fix bounding rects of text items.Andrew den Exter2012-04-272-47/+167
| | | | | | | | | | Ensure the rectangles are correctly positioned with right and center aligned text, not just sized correctly. Also add padding to the clip rects so the cursor and styled text aren't clipped at the item boundaries. Change-Id: I03ef140589154ebd49b600b0a4c4fbeff845c10f Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Propagate left key presses to the parent item when TextInput is empty.Andrew den Exter2012-04-271-0/+10
| | | | | | | | Don't overwrite the ignore value once it's been set to true. Task-number: QTBUG-25447 Change-Id: I7284147bc525d0971564570f0dd0599cec190905 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Use QInputMethod::isVisible instead of QInputMethod::visibleGirish Ramakrishnan2012-04-201-11/+11
| | | | | | | QInputMethod::visible will be removed in qtbase. Change-Id: I16ffbe56d55a62ae6a905e3cfdab8ad245d24aa0 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Ensure the cursor delegate position is correct when wrapping.Andrew den Exter2012-04-194-5/+82
| | | | | | | | | | When inserting text into a TextEdit with implicit width and wrapping the cursor delegate position has to be updated after the width is expanded to the implicit width otherwise it will be positioned in a wrapped location. Change-Id: Ibcb709ec1b4f6827ea8ae919f2e0c932c7372869 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix QQuickTextInput test instability.Andrew den Exter2012-04-031-1/+1
| | | | | | | | Use a QWindow to steal focus rather than a second QQuickView, as it appears there may be some issue with shared GL resources between views. Change-Id: I8a134e3b4a1e54f645d0071543ec8f94338ff315 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Set cursorVisible to false when im cursor length is 0.Andrew den Exter2012-04-021-4/+113
| | | | | | | | | | | | If the length of the QInputMethodEvent::Cursor attribute is 0 the cursor is supposed to be hidden. To ensure this and any other IM state is reverted when the input method is reset send a empty event to the editor when preedit is cancelled or removed and count formatting or cursor changes when determining if the input method is composing (i.e has state that needs to be reset). Change-Id: Ifca69aa0c18776b1aef355ed6ae9aecc40b9d475 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Fix qquicktext tests to use QQmlComponent not QDeclarativeComponentJulian de Bhal2012-03-281-2/+2
| | | | | Change-Id: I340e01b9fa6d77343f25180abaa021454c7a0767 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* TextInput to use password mask delay if platform style defines onePekka Vuorela2012-03-271-5/+4
| | | | | | | Change-Id: I05b98db2d7855f29b11749524a74e04a71178347 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Remove insignification from some fixed testsMiikka Heikkinen2012-03-261-2/+0
| | | | | | | | These tests no longer fail on Windows, so remove insignification from them. Change-Id: Ic4fd2fa83a0f706c1cbd5299d5243f65c3251f93 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Remove tentative commit from editorsPekka Vuorela2012-03-261-22/+0
| | | | | | | | | Feature to be reimplemented simplified. Now using new FocusAboutToChange event for using input method to commit stuff when window is losing focus. Change-Id: I81c96c36d9f0a1b38adb4324f3b892c33547cb50 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Add move comprehensive tests for TextInput input mask.Andrew den Exter2012-03-221-0/+489
| | | | | | | | This was previously covered by tests for QLineEdit but since the two implementations have diverged we also need to test individually. Change-Id: I00ae7bfd96302d08af4364f577925e99882117a0 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Fix text wrapping and eliding with implicitWidth.Andrew den Exter2012-03-221-0/+57
| | | | | | | | | | | | Update the implicitWidth of the item before continuing with the layout rather than after it's completed this gives any bindings dependent on the implicitWidth the opportunity to update the width before the layout continues. Task-number: QTBUG-22680 Task-number: QTBUG-24251 Change-Id: I61cd96ad9891b22d8b83937ad2c06719f88976b6 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Don't overwrite text selections made in focus handlers.Andrew den Exter2012-03-211-3/+103
| | | | | | | | | | Defer giving focus to TextInput or TextEdit until after other mouse press handling has been performed, otherwise setting the cursor position will overwrite any selection or cursor position set in the on(Active)FocusChanged handler. Change-Id: I6332642484de65138a444987b5a81be69c6f835f Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Content size should not include trailing spaces.Andrew den Exter2012-03-211-41/+108
| | | | | | | | | | | | | | | Excluding trailing spaces from the content size means the cursor position also needs to considered in determining the width used by the text as unwrapped white space can push the cursor over the width of the item. Also corrects an auto scroll issue with right to left text identified in extending the tests. Task-number: QTBUG-24630 Change-Id: Iaab9eac03824b22f507154fa1d6e55376bd075a0 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Add additional key sequence tests.Andrew den Exter2012-03-201-28/+121
| | | | | Change-Id: Ie77a61a3ea0d1bdccd59dd519346db74bdf59c44 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Fix QQuickTextInput test failure on WindowsCharles Yin2012-03-201-3/+0
| | | | | | Task-number: QTBUG-24790 Change-Id: I1d78df79568389f8c59f99ace9e2d7685b5d8f0d Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Windows: Mark several declarative test cases insignificantMiikka Heikkinen2012-03-141-0/+2
| | | | | | | | These tests are marked insignificant for now to make CI runs pass. Insignifications need to be removed once the related issues are fixed. Change-Id: I3a1d36e5b17cf2f1b2f00b20b615359d96975f2b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Remove unneeded dependencies to QtWidgets and QtOpenGLLars Knoll2012-03-122-3/+1
| | | | | Change-Id: I43bb54524f5786a838073df8812107dda7b0d56e Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Changed quick tests to work from install directoryKurt Korbatits2012-03-071-3/+1
| | | | | | | | | - Changed tests to use TESTDATA - added check for cross_compile option to skip when sources not available Change-Id: I1f382794ff982bbc07fc20438a4e4a8c8b8d565f Reviewed-by: Michael Brasser <michael.brasser@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Merge master <-> api_changesMatthew Vogt2012-03-051-40/+37
| | | | Change-Id: Iad2f07b989b25349fd2d4fff010e24dcd5a1688f
* Rename QDeclarative symbols to QQuick and QQmlMatthew Vogt2012-02-2434-0/+5062
Symbols beginning with QDeclarative are already exported by the quick1 module. Users can apply the bin/rename-qtdeclarative-symbols.sh script to modify client code using the previous names of the renamed symbols. Task-number: QTBUG-23737 Change-Id: Ifaa482663767634931e8711a8e9bf6e404859e66 Reviewed-by: Martin Jones <martin.jones@nokia.com>