summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix tst_QSidebar::addUrls() on Symbian.Liang QI2009-10-141-10/+16
| | | | | | On Symbian, QDir::rootPath() and QDir::home() are same. RevBy: Janne Anttila
* Fix the autotest for S60, skip tst_QPainter::drawClippedEllipse().Liang QI2009-10-141-1/+1
| | | | RevBy: Janne Anttila
* Remove excess spam from autotests when postgresql creates primary indexes.Bill King2009-10-147-2/+40
|
* Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6ninerider2009-10-1314-20/+750
|\
| * stabilize QSslSocket autotestPeter Hartmann2009-10-131-0/+1
| | | | | | | | | | | | there was a race condition which on Windows often made the test fail Reviewed-by: Markus Goetz
| * Carbon: QApplication auto test shows bug in event dispatcherRichard Moe Gustavsen2009-10-131-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The reason for the bug is that we call _quit_ on the eventloop just _after_ posting the deffered delete event (from inside deleteLater function, ref the test where it fails, tst_qapplication.cpp:1242). And the point is, even if the loop level tells us that we _can_ delete the object in this case, the 'quit' tells us that we should not process _any_ events (until we get a call to processEvents again). So this patch makes sure that we don't call sendPostedEvents from the eventDispatcher if it is interruped. Rev-By: brad
| * Merge qt-team-widgets/4.6 into origin/4.6Olivier Goffart2009-10-1312-20/+745
| |\
| | * QGraphicsView tests on X11Olivier Goffart2009-10-123-2/+4
| | |
| | * Fixes tst_QProxyWidget::palettePropagation on MacOlivier Goffart2009-10-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | QPalette() and QApplication::palette("QLineEdit") are not the same on Mac We really want QPalette() here because the graphics widget is not supposed to inherit from the widget it is proxying. Reviewed-by: Alexis
| | * Merge commit '8df79a473e1a7e5c79b9b10827985bf3e9501002' into 4.6Alexis Menard2009-10-1224-316/+1723
| | |\
| | * | Fixed keyboard navigation for QTableViewGabriel de Dietrich2009-10-121-2/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keyboard navigation didn't work in the following cases: - The last column was disabled and we pressed the tab key when at the 2nd last column. (See ref. task). - Spans with their anchor column or row hidden or disabled. - Navigation would not preserve the original row/column when traversing a span horizontally/vertically. Auto-tests submitted with this commit. Task-number: QTBUG-3878 Reviewed-by: Olivier
| | * | QFileSystemModel autotest: sorting might be delayedOlivier Goffart2009-10-121-1/+1
| | | |
| | * | Fix GraphicsView test on macOlivier Goffart2009-10-121-1/+7
| | | | | | | | | | | | | | | | On mac, we always get full update.
| | * | Fix the QWidgetAction test on CarbonOlivier Goffart2009-10-121-0/+2
| | | |
| | * | GraphicsView tests on macOlivier Goffart2009-10-122-3/+5
| | | | | | | | | | | | | | | | When a widget is shown we get two paint avent on Mac
| | * | Add usefull debug output to the bic testOlivier Goffart2009-10-121-0/+2
| | | |
| | * | Fixes QPauseAnimation autotests for unreliable timer intervals on WindowsLeonardo Sobral Cunha2009-10-091-13/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The timer interval used currently on Windows is 16 ms, but we get ticks at every 32 ms on average, so the consistent timing is not reliable on windows. We should use the multimedia timer instead (use 15 ms for QTimer), once qt is able to handle events while native event loops are running. When this is done, the ifdefs introduced in this commit should be removed. Reviewed-by: thierry
| | * | Fix an auto-test regression.Alexis Menard2009-10-091-6/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Here lot of views were floating around and the processEvent was not called in the right place. Reviewed-by:ogoffart
| | * | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Alexis Menard2009-10-0911-22/+80
| | |\ \
| | * | | Add a test case for task QTBUG-4439.Alexis Menard2009-10-091-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit fc3dfc20d487cb4fd2f93bd9fa36eef85a7467a3 fixes the problem. The unpolished items list was modified in between the iteration which means that invokeMethod was never recall if you add an item inside the polishEvent handler. The invokeMethod is called in addItem only when the list is empty right before we add the item in the list. Task-number:QTBUG-4439 Reviewed-by:TrustMe
| | * | | Fixed a potential crash in QGraphicsScenePrivate::_q_polishItems()J-P Nurmi2009-10-091-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch make sure that we always start from the beginning of the unpolished items list and we erase the first value at each iteration. The patch also convert the list to a set that is more appropriate here. Merge-request: 1707 Reviewed-by: Alexis Menard <alexis.menard@nokia.com>
| | * | | Fix context menu and menu key in QGraphicsView.Alexis Menard2009-10-081-11/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a weird bug when pressing the menu key on a proxy that embed a lineedit (but the proxy don't have the focus). At each time the key was pressed a context menu was created. When we press the menu key, QWidgetMapper will create a context menu event that will be sent to the QGraphicsView and will end up in QGraphicsScene. QGraphicsScene will then try to find all items under the mouse and will try to find any item from this list that accept this contextMenuEvent. In our case the proxy will always accept it and therefor will always send it to the widget that it owns and that's why we had this infinite numbers of QMenu. In QWidget world the context menu event is always sent to the widget that has the focus. If you checked any QWidget subclasses you'll see that all of them assume that when they get a context menu event everything is fine focus wise. We could have changed QGraphicsScene::contextMenuEvent but this will breaks some existing code. Instead we just checked that QGraphicsProxyWidget has the focus before we actually send the contextMenuEvent to the widget it owns. I have modified an existing auto-test to cover that. Be careful widget->setContextMenuPolicy(Qt::ActionsContextMenu) means that you will get no contextMenuEvent. :D. In this test i cover the standard use case and the one with Qt::ActionsContextMenu with and without the focus on the proxy. Task-number:QTBUG-3787 Reviewed-by:jan-arve
| | * | | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6Marius Bugge Monsen2009-10-084-15/+15
| | |\ \ \
| | * | | | Avoids timer ticks when there are only pause animations runningLeonardo Sobral Cunha2009-10-073-0/+398
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When there are only pause animations running, the timer will stop and restart when the closest pause animation finishes. While there are only pause animations running, there are no additional timer ticks, but if there is at least one animation running that is not a group or a pause, then the global animation timer will restore it's update interval. Includes a new auto-test for the QPauseAnimation class. Task-number: QT-941 Reviewed-by: thierry Reviewed-by: janarve
* | | | | | Notification relaxed for Windows CE test.ninerider2009-10-131-1/+6
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to lower performance the expected signal count was decreased for this test. Reviewed-by: Maurice
* | | | | Fixes autotest: Savepoints are actually supported from 4.1 onwards.Bill King2009-10-131-2/+2
| | | | |
* | | | | This autotest doesn't make sense for in-memory databases.Bill King2009-10-131-0/+2
| | | | |
* | | | | Fixes autotests now for MS Access via ODBC.Bill King2009-10-135-10/+34
| | | | |
* | | | | Fixes issue with multiple lookups to same table/fieldBill King2009-10-131-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the renaming scheme created a new table_field alias name. If multiple references referred to the same table/field lookup, then multiples of the same alias would be generated in the query, leading the query to fail. Reviewed-by: Justin McPherson
* | | | | Added support for singleshot gestures.Denis Dzyubenko2009-10-121-7/+10
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a gesture recognizer claims to be in Finished state without any Triggered states before, that probably means that was a singleshot gesture that has started and ended right away, so we'll send a fake gesture in the GestureStarted state. Reviewed-by: trustme
* | | | QUuid::createUuid() not unique when using threads on UnixBradley T. Hughes2009-10-121-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QUuid::createUuid() only seeds the PRNG on the first entry, but since it's using qsrand() and qrand(), all other threads will use the default seed, and thus generate the exact same UUIDs. Fix this by adding an internal function (qsrand() overload with no args) which seeds the PRNG if it hasn't been done already, and use a seed that is based on current time, a stack address and a global serial counter (so that the chances of 2 threads using the same seed are as low as possible). Task-number: QTBUG-3543 Reviewed-by: Marius Storm-Olsen
* | | | Add license headers - make header-testcase pass.Volker Hilsheimer2009-10-1010-4/+250
| | | |
* | | | A new implementation of the Gesture API.Denis Dzyubenko2009-10-0921-318/+1453
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Implemented gestures using gesture events and separate QGesture/QGestureRecognizer classes. Reviewed-by: trustme
* | | | For this test to work you need to enable autoSip on Windows Mobileninerider2009-10-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Test fixed to send the correct signal type on windows ce. Reviewed-by: Marco
* | | | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6ninerider2009-10-093-3/+41
|\ \ \ \ | | |_|/ | |/| |
| * | | Add a way to allow tracking the originating object with QNetworkRequest.Simon Hausmann2009-10-091-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added setOriginatingObject() and originatingObject() to QNetworkRequest that internally tracks the QObject using a QWeakPointer. Reviewed-by: Lars Knoll Rubberstamped-by: Thiago
| * | | Autotest: fix false positives with MSVC.NET 2003Thiago Macieira2009-10-091-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is definitely a compiler bug. The compiler forgets to adjust the value of the pointers inside the template operator== function. If you make the call outside the template function, it works as expected. Reviewed-by: Trust Me
| * | | Autotest: fix forward-declaration test.Thiago Macieira2009-10-091-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was that we forward-declared as struct, but the function was implemented as class. It's different on MSVC. Reviewed-by: Trust Me
| * | | Help Nokia X86 compiler to compiler qbuttongroup autotest.Janne Anttila2009-10-091-1/+1
| | | | | | | | | | | | | | | | Reviewed-by: TrustMe
* | | | All mousewheel tests skipped on Windows CEninerider2009-10-091-6/+3
|/ / / | | | | | | | | | | | | | | | | | | Due to more problems with this test, they are skipped alltogether on Windows CE. Reviewed-by: Joerg
* | | Fixes XPASS on the QFileDialog test on CarbonOlivier Goffart2009-10-081-1/+1
| | | | | | | | | | | | Reviewed-by: alexis
* | | Skip the crashing selftest on MacOlivier Goffart2009-10-081-1/+1
| | | | | | | | | | | | | | | | | | The signal handler does seem to work on Mac for segfault Reviewed-by: Rohan McGovern
* | | Stabilize TestsOlivier Goffart2009-10-082-9/+9
| | |
* | | Skipped test for Windows Mobile involving mouse move events.ninerider2009-10-081-0/+3
| | | | | | | | | | | | | | | | | | | | | Events caused by dragging a mouse are currently unavailable in Windows Mobile. Reviewed-by: Joerg
* | | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6ninerider2009-10-082-3/+19
|\ \ \
| * | | Mac: fix auto test to reflect recent changes in wheel event handlingRichard Moe Gustavsen2009-10-081-1/+17
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | ...on mac. Since mouse wheel events are accelerated by the OS on mac, we cannot multiply the delta with QApplication::wheelScrollLines, since this will make scrolling behave far to fast. To change the speed of wheel events on Mac, one should use system preferences. This patch updates the test to reflect his difference. Rev-By: ogoffart
| * | Fixed trailing whitespaces for f831c60a.Janne Anttila2009-10-081-2/+2
| | | | | | | | | | | | Reviewed-by: TrustMe
* | | Non-Zero timer livelock test expected to fail on Windows CEninerider2009-10-081-6/+3
| | | | | | | | | | | | | | | | | | Timing issues prevent this test from working correctly on Windows CE. Reviewed-by: Joerg
* | | Comparison tolerance increased for handheldsninerider2009-10-081-1/+5
|/ / | | | | | | | | | | | | The 'fuzzy' value for the was not relaxed enoough for small devices such as Windows Mobile and the like. Reviewed-by: Joerg
* | Fix for "Braces mismatch \tests\auto\qsqlrecord\qsqlrecord.pro:16"Janne Anttila2009-10-081-3/+3
| | | | | | | | Reviewed-by: Miikka Heikkinen