summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* QGraphicsTextItem::setDefaultTextColor check change before calling update()Olivier Goffart2009-11-261-6/+11
| | | | | | | Some applications call setDefaultTextColor in the paint event. Task-number: QTBUG-6242 Reviewed-by: Gabriel
* Optimize QObjectPrivate::isSignalConnectedOlivier Goffart2009-11-261-0/+109
| | | | | | | | | | | | | | It can be seen in the GraphicsView benchmark. This function has to be as fast as possible. Make the function inline. We do not need 64bit for the connectedSignals bit array because it is very unlikely that an object will have more than 32 signals. (In Qt 4.5 it could have hapenned as the slot were counting in the index) Reviewed-by: bnilsen Reviewed-by: Brad
* autotest fix: mac shows sizegrip when window is maximizedThierry Bastian2009-11-251-0/+5
|
* Make the spinbox and doublespinbox better accept intermediate inputThierry Bastian2009-11-252-3/+69
| | | | | Task-number: QTBUG-5008 Reviewed-by: ogoffart
* Fix RCC testOlivier Goffart2009-11-251-2/+2
|
* fix languagechange testOlivier Goffart2009-11-251-1/+2
|
* Test for the clipboard presence in autotestThierry Bastian2009-11-251-0/+14
|
* stabilize tests on X11Olivier Goffart2009-11-253-16/+22
|
* Merge commit 'upstream/4.6' into oslo-staging-2/4.6Olivier Goffart2009-11-256-37/+89
|\
| * Merge commit 'oslo-staging-2/4.6' into upstream/4.6Olivier Goffart2009-11-257-1/+268
| |\
| * \ Merge commit '0d20ec8604b318ceafd6c35dfe1d73519bf024d3' of oslo-staging-1 ↵Simon Hausmann2009-11-255-21/+45
| |\ \ | | | | | | | | | | | | into 4.6
| | * | QNetworkCookieJar: don't do path checking when receiving cookiesPeter Hartmann2009-11-241-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Actually, the RFC 2109 says cookies should not be stored if the path attribute is not a prefix of the request URI the cookie comes from. However, all browsers allow it anyway; with the demo browser e.g. logging in to wordpress.com was not possible. We still do path checking when sending cookies, i.e. in QNetworkCookieJar::cookiesForUrl(). Reviewed-by: Markus Goetz Task-number: QTBUG-5815
| | * | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6Simon Hausmann2009-11-244-1/+77
| | |\ \
| | * | | update autotest to match 4.6 behaviorKent Hansen2009-11-231-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | In 4.6 the Global Object no longer has an arguments property with undefined value; there should be no such property.
| | * | | Add reference to JIRA task for expected test failureKent Hansen2009-11-231-1/+1
| | | | |
| | * | | Add references to JIRA tasks for expected test failuresKent Hansen2009-11-234-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are behavioral differences between QtScript in 4.6 and 4.5, and so should have tasks to figure out whether anyone actually depend on the behavior.
| | * | | Don't crash in eval() function when QtScript debugger is attachedKent Hansen2009-11-231-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The built-in eval() function bypasses the script registration performed by QScriptEngine::evaluate(), so if we get an atStatement() callback from JSC from that script, the scriptID-to-sourceProvider lookup will fail. In this case, just return from atStatement() without delivering the positionChange() callback to the QScriptEngineAgent, since the agent will not have received the scriptLoad() callback for that script anyway. This is a change in behavior from 4.5, but we consider it the minimum-impact fix at this point to keep 4.6.0 from crashing. The only downside is that debugging will effectively be "disabled" for the script passed to eval(), but that's a lot better than crashing. Task-number: QTBUG-6108 Reviewed-by: Jedrzej Nowacki
| * | | | Fix softkeys for QDialogButtonBoxes created without a parent.Jason Barron2009-11-241-16/+44
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Inthe case where a QDialogButtonBox was created without a parent, for example in the FTP example, the softkeys that are automatically created inside the button box were not being added to the right widget when the button box was given a parent (or added to a layout) later. This patch resolves that issue by handling the ParentChange event and then adding the softkeys at this point. Task-number: QTBUG-6086 Reviewed-by: axis
* | | | skip one test on mac because it uses native menu barsThierry Bastian2009-11-251-0/+3
| |_|/ |/| |
* | | Fix QTreeWidgetItem::setChildIndicatorPolicy not updating.Olivier Goffart2009-11-241-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | The problem is that the ChildIndicatorPolicy change the hasChildren in the model. But this is cached in the QTreeView layout. We must do a relayout to clear the cache. Reviewed-by: Thierry Task-number: QTBUG-3071
* | | Make paste + undo behave in QLineEdit as it does in QTextEditThierry Bastian2009-11-241-0/+38
| | | | | | | | | | | | | | | | | | | | | On the undo/redo stack, it needs to be treated as a separate command Task-number: QTBUG-5786 Reviewed-by: ogoffart
* | | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6-staging2axis2009-11-241-0/+28
|\ \ \ | |/ /
| * | Don't crash in eval() function when QtScript debugger is attachedKent Hansen2009-11-241-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The built-in eval() function bypasses the script registration performed by QScriptEngine::evaluate(), so if we get an atStatement() callback from JSC from that script, the scriptID-to-sourceProvider lookup will fail. In this case, just return from atStatement() without delivering the positionChange() callback to the QScriptEngineAgent, since the agent will not have received the scriptLoad() callback for that script anyway. This is a change in behavior from 4.5, but we consider it the minimum-impact fix at this point to keep 4.6.0 from crashing. The only downside is that debugging will effectively be "disabled" for the script passed to eval(), but that's a lot better than crashing. Task-number: QTBUG-6108 Reviewed-by: Jedrzej Nowacki (cherry picked from commit 23002374d11598b26b6585e78dc073071a13f0ec)
* | | Mac: Fixes broken window decorations for QGraphicsProxyWidget.Bjørn Erik Nilsen2009-11-241-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was the QMacStyle didn't handle the pixel metric for PM_TitleBarHeight correctly when passing a style option containing an unitialized rect (empty rect). It already had special logic for invalid rects, so the fix is simply to extend the check to also handle empty rects. Auto-test included. Task-number: QTBUG-4160 Reviewed-by: msorvig
* | | Make the menubar filter out EScape only if there is a current actionThierry Bastian2009-11-231-0/+22
| | | | | | | | | | | | | | | Task-number: QTBUG-4965 Reviewed-by: gabi
* | | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.6Jan-Arve Sæther2009-11-2310-16/+219
|\ \ \
| * | | Fixes qlistview failing autotest: QTBUG_5877_skippingItemInPageDownUpLeonardo Sobral Cunha2009-11-231-1/+1
| | | | | | | | | | | | | | | | Reviewed-by: ogoffart
| * | | Merge 'upstream/4.6' into oslo-staging-2/4.6Olivier Goffart2009-11-238-15/+172
| |\ \ \ | | |/ /
| | * | Merge oslo-staging-2/4.6 into upstream/4.6Olivier Goffart2009-11-234-1/+77
| | |\ \ | | | |/ | | |/|
| | * | Merge commit 'b7692016f282251002b3e85dfcb5567bd91a12c0' of oslo-staging-1 ↵Simon Hausmann2009-11-231-0/+112
| | |\ \ | | | | | | | | | | | | | | | into 4.6
| | | * | Fix regression introduced in 1e6b424b692b20dcfec920f8d3563e520ec1ff05João Abecasis2009-11-201-0/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When processing the result of QIODevice::readLine, forgot to take into account that a '\0' is appended to the array. The terminating character is not accounted for in the number of bytes returned. By pre-allocating a byte for the terminating null character, we make sure we'll actually read 16k bytes on each and every iteration. Task-number: QTBUG-6019 Reviewed-by: Thiago Macieira
| | * | | Merge remote branch 'staging/4.6' into 4.6Oswald Buddenhagen2009-11-237-15/+60
| | |\ \ \
| | | * | | fix encodings, take NOswald Buddenhagen2009-11-207-15/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-4499 Task-number: QTBUG-5276
| * | | | | Fix QHeaderView when the model is reset and section have moved.Olivier Goffart2009-11-231-0/+46
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The logicalIndices and visualIndices array where not clean of the old sections, resulting in corrupted header. Task-number: QTBUG-6058 Reviewed-by: Thierry
* | | | | Merge branch 'fixes' of ↵Jan-Arve Sæther2009-11-231-0/+84
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | git://gitorious.org/~fleury/qt/fleury-openbossa-clone into fleury-fixes2
| * | | | QGAL: sizeHint constraints needed by anchors parallel with the layoutEduardo M. Fleury2009-11-201-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The method "constraintsFromSizeHints" does not create constraints for anchors between the layout vertices _only if_ these anchors have infinite maximum sizes. However, this test was not being done for half-anchors, ie. those created when the layout center anchorage point is used. That was OK when there was no chance that the center anchors had been simplified by a parallel anchor. Nowadays there's a chance that happens, so the test was extended. Commit also adds a test to avoid regressions. Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org> Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
| * | | | QGAL: deal correctly with anchors in parallel with the layoutCaio Marcelo de Oliveira Filho2009-11-201-0/+52
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the preferred size calculation, we should not add 'layout anchors' (either one or the two halves) into the objective function, since the layout doesn't impose or prefer any size at all. This already worked for cases when the layout anchor is one, but not when we have two halves. The mechanism was a 'skipInPreferred' flag that were not being set. The flag is pretty much redundant right now, since we can get this information from the 'isLayoutAnchor' flag. So, the flag was removed and a test was added for both a parallel case with the entire layout and other with half of the layout (which wasn't passing before). Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> Reviewed-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
* | | | Fixes painting issues when scaling a QGraphicsView.Yoann Lopes2009-11-201-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was that the 'exposed rectangle' passed to the Item's paint() function was rounded to Int values, whereas the one passed to drawBackground and drawForeground was not. Autotest included. Task-number: QTBUG-5859 Reviewed-by: bnilsen
* | | | Merge commit 'origin/4.6' into 4.6Olivier Goffart2009-11-2013-84/+109
|\ \ \ \ | | |/ / | |/| |
| * | | Merge commit 'd9fa92' into origin-4.6Olivier Goffart2009-11-206-11/+70
| |\ \ \ | | |_|/ | |/| |
| * | | Merge commit 'b345b96dc14cc0da3a9ff44216d447e6f2c8ad97' from oslo-staging-1 ↵Simon Hausmann2009-11-201-5/+7
| |\ \ \ | | |_|/ | |/| | | | | | into 4.6
| | * | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6Simon Hausmann2009-11-1911-101/+240
| | |\ \
| | * | | Autotest: Change the service name we're testing between tests.Thiago Macieira2009-11-191-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise, we get errors from one test to the next, due to the cleanup unregistering the name again. Task-number: QT-5588
| * | | | Merge remote branch 'mainline/4.6' into 4.6Oswald Buddenhagen2009-11-1923-178/+355
| |\ \ \ \ | | | |/ / | | |/| |
| | * | | Merge branch '4.6' of oslo-staging-1 into 4.6Simon Hausmann2009-11-1911-75/+100
| | |\ \ \ | | | |/ /
| | | * | tst_qtcpsocket: Stabilize by increasing timeoutsMarkus Goetz2009-11-181-7/+7
| | | | | | | | | | | | | | | | | | | | Reviewed-by: TrustMe
| | | * | Added missing autotests to the tests/auto.proDenis Dzyubenko2009-11-188-64/+66
| | | | | | | | | | | | | | | | | | | | Reviewed-by: Olivier Goffart
| | | * | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt into 4.6Simon Hausmann2009-11-1818-22/+2297
| | | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.exe
| | | * | | upgraded harfbuzz to lastest versionLars Knoll2009-11-181-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upgrade harfbuzz to b0d396aa88b3cdf8cea896bfeeba197656e1cdb1. This fixes a text rendering problem in Malayalam. Task-number: QTBUG-1887 Reviewed-by: Simon Hausmann
| | | * | | Fix regression introduced in 98a05681851db9d88b1364af52be543715fbe306João Abecasis2009-11-182-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some network tests were set up to ignore a qWarning that was removed. Fixed those tests. Made warning from QIODevice::getChar have the right function name. Reviewed-by: Thiago Macieira