summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* Adapt testcase to cosmetic pen workarounds in codeGunnar Sletta2009-11-031-2/+2
| | | | Reviewed-by: Samuel
* Fix some test failures in the qgl test on 16 bit servers.Trond Kjernåsen2009-10-301-0/+22
| | | | | | | These tests are designed to run in 24 or 32 bit mode, and won't work unless they do.. Reviewed-by: Samuel
* Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-graphics-team into 4.6Gunnar Sletta2009-10-301-0/+13
|\
| * Avoid infinite loop when laying out text with unconvertible charsEskil Abrahamsen Blomfeldt2009-10-291-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the stringToCMap() fails, it can be because it did not have enough space in the layout, or it can because of other errors. In order to implement "try-again" processing in a simple way, we had an infinite loop which assumed that stringToCMap() would always succeed in the second run (which would be the case if the only possible error was "not enough space".) Since there are other possible failures not related to the number of glyphs, you could easily get into an infinite loop here, e.g. when laying out text that contains the Byte Order Mark. The fix changes the implementation to explictly try stringToCMap() twice at max, and is also how it's implemented in the default qtextengine.cpp. Task-number: QTBUG-4680 Reviewed-by: Trond
* | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Gunnar Sletta2009-10-3010-23/+368
|\ \ | |/ |/|
| * do not crashOswald Buddenhagen2009-10-292-0/+27
| |
| * Autotest: add a few more tests for Unicode (IDN) supportThiago Macieira2009-10-291-2/+5
| |
| * Autotest: add one test that was in the previous implementation but missing hereThiago Macieira2009-10-291-0/+1
| |
| * Autotest: use example.org and example.netThiago Macieira2009-10-291-12/+12
| | | | | | | | | | | | No need to publicise real sites and email addresses. Also, don't use 8-bit data. C escape sequences are ok.
| * Import a new implementation of fromUserInput.Thiago Macieira2009-10-291-0/+60
| | | | | | | | | | | | Imported from http://github.com/icefox/guessurlfromstring Licensed under the 3-clause BSD license by the copyright holder.
| * Remove the fromUserInput implementation and tests.Thiago Macieira2009-10-291-55/+0
| | | | | | | | Reviewed-by: Trust Me
| * Cache a state's parent stateKent Hansen2009-10-291-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | QAbstractState::parentState() is called heavily by the state machine algorithm. The parent state is obtained by qobject_cast'ing QObject::parent(). qobject_cast() is expensive. This commit introduces caching of the result in order to improve performance. We expect that the cache won't be invalidated much since the parent-child relationship of states usually doesn't change after the state machine is started. Reviewed-by: Eskil Abrahamsen Blomfeldt
| * Make QStateMachine event posting functions thread-safeKent Hansen2009-10-291-0/+48
| | | | | | | | | | | | | | | | By popular demand on the Qt Labs blog. This makes it possible to readily use QStateMachine with e.g. worker threads that post events to the machine. Reviewed-by: Eskil Abrahamsen Blomfeldt
| * Test that we gracefully handle event posting after the state machine is stoppedKent Hansen2009-10-291-0/+17
| | | | | | | | | | The internal slot _q_process() should never be called if the machine is not in the Running state.
| * Change all valid Task-Tracker references to bugreports.qt.nokia.com reference.Warwick Allison2009-10-294-4/+4
| |
| * Say hello to QScriptProgram :-)Kent Hansen2009-10-282-0/+235
| | | | | | | | | | | | | | | | | | | | | | QScriptProgram encapsulates a Qt Script program (AKA a script). It retains the compiled representation of the script, so that repeated evaluation of the same script becomes faster. An overload of QScriptEngine::evaluate() that takes a QScriptProgram has been added. Reviewed-by: Olivier Goffart
* | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Gunnar Sletta2009-10-284-8/+87
|\ \ | |/
| * Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-s60-public into 4.6axis2009-10-274-8/+87
| |\
| | * Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6axis2009-10-274-9/+151
| | |\
| | * | Removed the need for extra Symbian traps after QApp construction.axis2009-10-261-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was achieved by putting back the old trap handler after the S60 framework construction has finished. Task: QTBUG-4960 AutoTest: Included and passed RevBy: Shane Kearns
| | * | Fix QCompleter autotest for case insensitive filesystemsShane Kearns2009-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The directory completion test case was constructing a case insensitive name completer, but doing a case sensitive string comparison of the test result. After this change, it uses the same case sensitivity the QCompleter was constructed with to perform the comparison - which varies according to the test case. Reviewed-by: axis
| | * | Make network self test fail instead of crashing in case of DNS errorShane Kearns2009-10-261-0/+5
| | | | | | | | | | | | | | | | | | | | Reviewed-by: Liang QI Reviewed-by: Aleksandar Sasha Babic
| | * | Merge branch '4.6' of git@scm.dev.troll.no:qt/qt-s60-public into 4.6Janne Anttila2009-10-238-64/+732
| | |\ \
| | * | | Fixed softkey autotest build after 5370e5ff.Janne Anttila2009-10-231-7/+18
| | | | | | | | | | | | | | | | | | | | Reviewed-by: axis
* | | | | Updated testcase to match new boundingRect logicGunnar Sletta2009-10-281-1/+1
| | | | |
* | | | | Adapt testcase to updates in QGraphicsPixmapItemGunnar Sletta2009-10-281-2/+2
| | | | | | | | | | | | | | | | | | | | Reviewed-by: TrustMe
* | | | | Got tst_qpixmapfilter.cpp compiling againGunnar Sletta2009-10-281-1/+1
| | | | | | | | | | | | | | | | | | | | Reviewed-by: Trustme
* | | | | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Gunnar Sletta2009-10-275-24/+92
|\ \ \ \ \ | |/ / / /
| * | | | Fix integer overflow in string.remove len parameterMarkus Goetz2009-10-271-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | Task: 262677 Reviewed-by: joao
| * | | | Implement support for wheel delta with finer resolution than 15 deg.Richard Moe Gustavsen2009-10-271-16/+0
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At the moment, Qt, in many places, does not really understand that a mouse wheel, or touch pad, might operate on a much higher granularity than 15 degrees (that is, a delta of 120). This is clear disadvantage on mac, since the mighty mouse, and track pad, got a resolution that is close to 1 degree. This is called pixel scrolling. This patch first and formost changes the implementation of QAbstractSlider::wheelEvent to _really_ understand what to do when delta is less than 120. Rather than accumulate delta until 120 is reached, then scroll with a value equal to: offset * step * QApplication::wheelScrollLines (default = 3), we multiply offset directly, before waiting for 120. This means that event tough offset is below 120, multiplying it with wheelScrollLines and step will very often give a value over 120, menaing we can scroll much earlier and _much more_ fined grained. This also fixes some auto tests that was ifdeffed out because of specialised mac code written inside this function from before. (NB: we still plan to introduce a new event for pixel scrolling, perhaps for Qt-4.7) Rev-By: Andreas Rev-By: denis
| * | | Fixes Oracle batchExec using strings as out params.Bill King2009-10-271-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | reserve() affects capacity(), not length(). Task-number: QTBUG-551
| * | | Autotest: fix building tst_qsqlquery.Thiago Macieira2009-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 'का' is not valid, since it encodes to more than 1 byte. Reviewed-by: Trust Me
| * | | tst_qtcpsocket: Increased some of the timeouts to increase stabilityMarkus Goetz2009-10-261-7/+7
| | | | | | | | | | | | | | | | Reviewed-by: TrustMe
| * | | QPixmap::loadFromData: Do not crash on empty/invalid data/lengthMarkus Goetz2009-10-261-0/+21
| | | | | | | | | | | | | | | | | | | | Task-number: 262636 Reviewed-by: gunnar
* | | | Fixed compilation of QGraphicsEffectSource autotest.Samuel Rødal2009-10-271-3/+3
| | | |
* | | | Made graphics effects autotest compile.Samuel Rødal2009-10-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | There's no grayscale effect anymore, use colorize effect. Reviewed-by: Gunnar Sletta
* | | | Options on how to get a pixmap from an effect sourceGunnar Sletta2009-10-271-0/+99
|/ / / | | | | | | | | | | | | | | | Usable for future optimizations. Reviewed-by: Samuel
* | | Optimize QGraphicsRotation's use of QMatrix4x4Rhys Weatherley2009-10-261-1/+68
| |/ |/| | | | | | | | | | | | | Previous code was creating a full 3D rotation matrix and then projecting back to 2D. This change combines the two steps into one to avoid calculating matrix components that will be dropped. Reviewed-by: Sarah Smith
* | Better sql unicode tests (still not working correctly tho).Bill King2009-10-232-11/+9
| |
* | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Kurt Korbatits2009-10-2216-59/+938
|\ \
| * | QHttp: Fix bug related to SSL and big POST dataMarkus Goetz2009-10-221-7/+36
| | | | | | | | | | | | | | | | | | | | | | | | QHttp is deprecated, but let's be nice and fix this. POST/PUT now properly works over HTTPS without buffering the whole data when it is not needed. Reviewed-by: Peter Hartmann
| * | QSslSocket: Trigger a SSL transmission when reading from the socket.Markus Goetz2009-10-221-0/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | In certain cases a SSL transfer stalled when a readBufferSize was set. This change triggers a SSL transmission when there is data on the socket waiting to be decrypted. Task-number: QTBUG-3860 Reviewed-by: Thiago
| * | Implemented gesture event delivery and propagation inside QGraphicsView.Denis Dzyubenko2009-10-221-20/+114
| | | | | | | | | | | | Reviewed-by: Thomas Zander
| * | Add QGestureEvent::mapToScene for better graphicsView integrationThomas Zander2009-10-221-0/+26
| | |
| * | Fix for the gestures autotest.Denis Dzyubenko2009-10-221-8/+6
| | | | | | | | | | | | Reviewed-by: trustme
| * | Improvements for gesture event deliveryDenis Dzyubenko2009-10-221-2/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | When delivering GestureOverride events by default both the event and individual gestures will be ignored. We also store the acceptance state of individual gesture in the event and not in the gesture object, along with its target. Reviewed-by: Thomas Zander
| * | Improving gesture event delivery for widgets.Denis Dzyubenko2009-10-221-8/+176
| | | | | | | | | | | | Reviewed-by: trustme
| * | Fixed gesture event delivery when several gestures are triggered.Denis Dzyubenko2009-10-221-6/+39
| | | | | | | | | | | | | | | | | | | | | | | | When there are two different gestures are being triggered and they are supposed to be sent to different widgets, don't stop event "propagation" when the first event is successfully delivered. Reviewed-by: trustme
| * | Improved gesture event filtering inside QGraphicsView for QGraphicObjectsDenis Dzyubenko2009-10-221-55/+160
| | | | | | | | | | | | Reviewed-by: trustme
| * | Extended an autotest for gestures.Denis Dzyubenko2009-10-221-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | Make sure that when a gesture recognizer explicitely sets the targetObject to a QGraphicsObject, we deliver it only to the object and will not try to propagate. Reviewed-by: trustme