summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers and add new license filesv5.4.0-alpha1Antti Kokko2014-08-251-19/+11
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: I736aeb1a53f8aac59e8df360447864fea64d3dee Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
* QDeclarativeError::toString: improve handling of empty urls.David Faure2014-07-261-3/+3
| | | | | | | | | | | | "file::2:23: ..." is strange to read. Show "<Unknown File>:2:23: ..." instead, by treating empty urls (including "file:") as unknown, and by still showing line and column numbers in such a case. This change makes it possible for QUrl::fromLocalFile("") to return an empty url rather than "file:", which this module was relying upon in the tests. Change-Id: Id6d8aaa73673283cb65cbd1316dca77f859a3f8f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* Fix tst_qdeclarativetextinput::copyAndPaste() for asynchronous clipboard ↵Sergio Ahumada2014-06-031-1/+1
| | | | | | | | | | | | | | notification. Change qtbase 6a61a00ddb21e79412e82069dfef50192bfd724d for Windows uses new clipboard notification API that results in asynchronous clipboard notifications. This change is similar to qtdeclarative/a7122f3b2832ad65cfd0ab0ce0315a7042ee9f92 Change-Id: I3bb85f7dbc258f8f93cde8af1c9b24286b99ce21 Reviewed-by: J-P Nurmi <jpnurmi@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
* whitespace fixesOswald Buddenhagen2014-02-201-8/+8
| | | | | | | | remove trailing spaces & expand tabs Change-Id: Ia088c8cc8a83d068f6e2ec84903b5220cd3411f1 Reviewed-by: Alan Alpert <aalpert@blackberry.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Stabilize and fix tst_qdeclarativetextinput on Windows.Friedemann Kleint2013-07-251-59/+62
| | | | | | | | | | | | | | Introduce a scoped pointer for the views to ensure cleanup after failing tests. Clear text in maxLength(). Move calls to QDeclarativeView::setFocus() below activation for it to set the "active" focus item correctly. Add message to obtain more information about failing tests. Task-number: QTBUG-32538 Change-Id: Id65afbdfb0f9fd70846958fcb28fdd0fe1bd70f7 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-101-1/+1
| | | | | | Change-Id: I0281c3f6c10bb7c57f0e470306f38e96badf997b Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Fix QDeclarativeTextInput::moveCursorSelection()Konstantin Ritt2012-10-201-36/+40
| | | | | | | | | | | | by using fixed QTextBoundaryFinder behavior. Update QDeclarativeTextInput autotests. Task-number: QTBUG-11365 Task-number: QTBUG-27364 Change-Id: Idda22f6c0974bf29d2ff961ea8d998a68c3d676b Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Rename the QtQuick1 module back to QtDeclarativeFriedemann Kleint2012-10-171-2/+2
| | | | | | | | | | | | | | | | | Matches the name that this code used to have in Qt 4. - Adapt library, change import path to 'QtDeclarative'. - Update the tests and examples to match the new library name. - Rename qtquick1global{_p}.h to qtdeclarativeglobal.h. - Change exports back to Q_DECLARATIVE_[PRIVATE_]EXPORT, like it was in Qt 4 and matching the library name again. This also changes the include guards in qtdeclarativeglobal{,_p}.h. - Fix occurrence of quick_debug in tools/qml/qml.pro. Change-Id: Ibb1fb2e503f90943a2125e4ac3cc4eca3369ca3f Reviewed-by: hjk <qthjk@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-241-24/+24
| | | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I11a957e35758e821269478ebc91e87f0f5ebc4d5 Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Remove Symbian platformKai Koehne2012-09-181-5/+0
| | | | | Change-Id: Iad770614f7c1c890febeee662d0ce9370dcb17e3 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Avoid usage of deprecated QInputMethod::inputItem() in testsPekka Vuorela2012-09-071-4/+7
| | | | | Change-Id: Ie6e37ab23b1bef99d294fe8a0acd95429a37a527 Reviewed-by: Joona Petrell <joona.petrell@gmail.com>
* Remove obsolete use of Q_WS_QWS.Stephen Kelly2012-07-271-3/+3
| | | | | Change-Id: I0c2af5663852a1fa456684424c220697fa6824e8 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* QtQuick1: Use new qWaitForWindowExposed/Active() functions.Friedemann Kleint2012-07-201-39/+39
| | | | | Change-Id: I020c82c465adaf6490a54871869bb6590542675f Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Propagate left key presses to the parent item when TextInput is empty.Marcel Schuette2012-05-311-0/+12
| | | | | | | | | Don't overwrite the ignore value once it's been set to true. Backport from QtQUick2 to QtQuick1 in Qt 5 (commit a7017465152d544a4217d5ce4f6f84b80cb9b8b9) Change-Id: Ia93e234773bb75040f889cc03853be311dbafd70 Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
* Fix compilation and tests after qtbase/api_changes mergeKent Hansen2012-04-181-3/+3
| | | | | | | | Adapt to QUrl changes, based on how qtdeclarative was adapted in commit 2d393ae042d5badf0862c0f95122f9662042f2a9. Change-Id: I9d1fddf4bbc6d86ac206dca4ac929d180ec12efa Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Fix text failure due to behaviour change in qtbase.Andrew den Exter2012-04-041-1/+1
| | | | | | | | | http://codereview.qt-project.org/#change,21263 changed the inputMask accessor to not include the default mask character, so the test data needs to be updated to reflect this. Change-Id: I7021f276348542125884dd259523ba42535ae368 Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* TextInput not to emit selection change signals if values do not changePekka Vuorela2012-03-231-18/+14
| | | | | | | | | Fixed also tests with QTBUG-24036 Test was assuming selectionStartChanged and selectionEndChanged to trigger even if their values did not change. Change-Id: I26e57cfb4ff06ec6c195ec2b0d997885c807670b Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Fix text editor mouse handler unit testsPekka Vuorela2012-03-231-2/+1
| | | | | | | QTBUG-24035 - tst_qdeclarativetextedit::inputContextMouseHandler test fails. Change-Id: I61ae74f1f4f19586abbdcae79f05f556a9904740 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Adapt to QInputPanel -> QInputMethod renamingPekka Vuorela2012-02-151-6/+6
| | | | | Change-Id: Id11fc9ae1be91611fee22d28407e54035e190c71 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Remove obsolete skip mode parameter from QSKIP calls.Jason McDonald2012-02-151-1/+1
| | | | | Change-Id: I069eeaab0ec25a3360e0604f262f304abeb385c1 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix license header format.Matthew Vogt2012-02-071-2/+1
| | | | | Change-Id: Ib71237ed181d075329a0267b5c108e6534c13e4e Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* QtQuick1: Fix compilation on Windows.Friedemann Kleint2012-02-071-1/+3
| | | | | | | | - Add missing modules, includes. - Fix warnings. Change-Id: I21a6107db6c5978ccfd59c4202cf31e3deba19ca Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Fix compile failures due to the removal of QInputContext.Andrew den Exter2012-02-071-3/+0
| | | | | | | The class was unused but still included by a couple of files. Change-Id: I8172be02d6185b44cf37d28220b99a1a206c95a0 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Fix license headers to match conventions.Matthew Vogt2012-02-071-0/+1
| | | | | | | | Files updated to mtach licensing conventions for different types, and license text updated to match current. Change-Id: Ib2c7457fbc3b37907ab3936e176e6f16f8308036 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Add expected failures for failing TextEdit and TextInput tests.Andrew den Exter2012-02-021-0/+1
| | | | | Change-Id: Ib51b244f0e1a3e58ab06ddf5bdd0e244c8d09004 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix or ignore test qdeclarativetextinput test failures.Andrew den Exter2012-02-021-26/+23
| | | | | | | | | | | Don't leave dangling pointers to test plaform input contexts, clear preedit text from input before continuing with test, allow some larger error for cursor positions across all platforms, and add an expected failure for a failure originating in QWidgetLineControl. Change-Id: I843d13c29d8e44e5e6bfa71b67358b11c1741e97 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Fix compile failures.Andrew den Exter2012-01-311-3/+3
| | | | | | | | Remove uses of QLineControl, QTextControl and QBool and forward declared QGraphicsWidget. Change-Id: Ic5184a1d5aebfb1100ad0e24444b6773f4e617e8 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Modify QtQuick1 to build in Qt5Matthew Vogt2012-01-311-221/+115
| | | | | Change-Id: I1c5ccaef420e8f119e761f50b969127f430df7ba Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Import relevant source from Qt 4.8Matthew Vogt2012-01-301-0/+2935
Change-Id: I5078db4081d95290c54f39d3c0efc2fc2f62e6a6