summaryrefslogtreecommitdiffstats
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* 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-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
* | | | 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
* | | 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
| * | Description: Auto test fixes for Windows Mobile platformninerider2009-10-221-5/+43
| |/ | | | | | | Reviewed-by: Joerg
| * Merge branch 'origin/4.6' into widgets-team/4.6Olivier Goffart2009-10-227-1/+94
| |\
| | * QtScript: Compatibility with 4.5Olivier Goffart2009-10-221-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | We must register the same type as they were registered in Qt 4.5 Reported on qt4-preview-feedback mailing list. Reviewed-by: Kent Hansen
| | * qfiledialog2 added to tests/auto/auto.proJoerg Bornemann2009-10-221-0/+1
| | | | | | | | | | | | Reviewed-by: alexis
| | * consider message id when comparing messagesOswald Buddenhagen2009-10-221-0/+6
| | |
| | * id-based: use source strings instead of empty translations only for ↵Oswald Buddenhagen2009-10-221-0/+1
| | | | | | | | | | | | unfinished messages
| | * QDom autotests: make test fail instead of time outPeter Hartmann2009-10-221-0/+1
| | | | | | | | | | | | | | | | | | introduce a QFAIL for now until problem is fixed Reviewed-by: Carlos Duclos
| | * Fix a bug in QGraphicsRotation related to 2D projectionsRhys Weatherley2009-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | | The projection to 2D needs to be done when the rotation is applied, not after all transformations have been applied. Reviewed-by: trustme
| * | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Marius Bugge Monsen2009-10-215-100/+129
| |\ \
| * | | Moved private function to test which graphic items is in front of the otherLeonardo Sobral Cunha2009-10-201-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This function is moved to graphicsitem private because it is needed by multi-touch event handling and is not specific to bsptreeindex. Reviewed-by: bnilsen
| * | | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-widget-team into 4.6Jan-Arve Sæther2009-10-201-9/+21
| |\ \ \
| | * | | Extended commit 6c1388ee for LeftToRight flowGabriel de Dietrich2009-10-201-9/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-test updated. As a bonus, stabilized tst_QListView::task262152_setModelColumnNavigate. Reviewed-by: Thierry
| * | | | Merge branch 'qlayout-make_adjustSize_better' into 4.6Jan-Arve Sæther2009-10-201-2/+26
| |\ \ \ \ | | |/ / / | |/| | |
| | * | | Make adjustSize work even if there is a pending LayoutRequest event.Jan-Arve Sæther2009-10-201-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original report was that the customer did resize(main.sizeHint()) instead of the main.adjustSize(); Note that resize(main.sizeHint() still does not work. However, calling main.adjustSize() should now do what the original reporter wanted. The problem was that the resize did not work, because at the point of the resize the minimumHeight of main was still 22 (8+6+8), and we tried to resize it with a new height of 10. The resize would bound the height up to 22, and the main widget would then get a size of (200x22). The reason why it still had a minimumHeight of 22 was that it was the minimumSize of the previous layout configuration. Unfortunately the new minimumSize of the widget hadn't been updated yet because there was a LayoutRequest event in the queue that hadn't been processed yet. (This LayoutRequest was triggered by that we called invalidate() from hide()). Thus, processing the event queue immediately after the hide() could also have been a workaround for this issue. There is no really good fix for this issue (and it does not seem to be a common problem) without introducing a risk for regressions. Due to that we therefore decided to provide a fix in QWidget::adjustSize(). Reviewed-by: paul
| * | | | Fixed QTreeView trying to animate when parent item has no childThierry Bastian2009-10-201-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now check that the item has children before animating. Reviewed-by: Alexis
| * | | | QPauseAnimation autotests fixedThierry Bastian2009-10-201-1/+2
| | | | |