summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.6Jan-Arve Sæther2009-12-042-0/+123
|\
| * Fixes clipping bug in the embedded dialogs demo.Yoann Lopes2009-12-041-0/+39
| | | | | | | | | | | | | | | | | | | | The problem was that when using DeviceCoordinateCache for items in a scene, newly exposed areas were wrongly painted over the Pixmap in the cache, instead of blending into it. Autotest included. Task-number: QTBUG-657 Reviewed-by: Andreas Reviewed-by: bnilsen
| * Fix crash when QGraphicsItem destructor deletes other QGraphicsItemOlivier Goffart2009-12-041-0/+6
| | | | | | | | | | | | Same fix as e7a10b00be3e4aa197900ecf424e6d44b07248ae Reviewed-by: Alexis
| * Fixes broken selection with Shift and extended selectionOlivier Goffart2009-12-031-0/+42
| | | | | | | | | | | | | | | | | | | | ItemAt() is in viewport coordinate. Pressed index is in coordinate relative to the whole view (regression since Qt 4.5) Reviewed-by: thierry Task-number: QTBUG-6407
| * Add extra auto-test for topLevel list corruption.Alexis Menard2009-12-031-0/+36
| | | | | | | | | | | | Adding auto-tests make QA people happy. Reviewed-by:TrustMe
* | Merge branch 'fleury-ooo-sequential' into 4.6Jan-Arve Sæther2009-12-042-19/+69
|\ \ | |/ |/|
| * Merge branch 'ooo-sequential' of ↵Jan-Arve Sæther2009-12-012-19/+69
| |\ | | | | | | | | | | | | | | | | | | git://gitorious.org/~fleury/qt/fleury-openbossa-clone into fleury-ooo-sequential Conflicts: tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp
| | * QGAL: Enable out-of-order sequential simplificationEduardo M. Fleury2009-11-271-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify the simplification code to allow the creation of out-of-order sequential anchors. Basically the "changedDirection" end-of-sequence condition was removed, also note that createSequence no longer bothers to revert the direction of anchors if the order it receives is not standard. Removing expect-fail clause from test since now we pass :-) Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org> Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org>
| | * QGAL (Test): Fix memory leaks in example and testsEduardo M. Fleury2009-11-272-18/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some tests and the example were leaking memory what made it harder to investigate leaks on the layout itself. Those were simple errors like not deleting the layout at the end of the test and were corrected. Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org> Reviewed-by: Artur Duque de Souza <artur.souza@openbossa.org>
| | * QGAL (Test): Add QGraphicsAnchor handling testEduardo M. Fleury2009-11-271-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | This test ensures that internal anchors are not exposed through the QGAL::anchor() API and also that the QGraphicsAnchors are deleted when the associated anchors are deleted internally. Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org> Reviewed-by: Artur Duque de Souza <artur.souza@openbossa.org>
| | * QGAL: default spacing can be unset using a negative valueEduardo M. Fleury2009-11-271-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After a default spacing is set through QGAL::setSpacing() family of methods, the user must be able to unset it. To avoid adding another public method, we enabled this feature by allowing a negative value to be passed to those methods. Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org> Reviewed-by: Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>
* | | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-s60-public into ↵axis2009-12-031-0/+62
|\ \ \ | | | | | | | | | | | | 4.6-staging2
| * | | Fixed softkey merging/traversing over window boundaries.Janne Anttila2009-12-021-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If current dialog implementation had parent and no softkeys set, the dialog got softkeys from parent. This commit changes the behaviour so that softkeys are not traversed over window boundaries. Also added autotest for the bug report. Task-number: QTBUG-6163 Reviewed-by: Jason Barron
* | | | Stabilize tests on X11Olivier Goffart2009-12-024-5/+14
| | | |
* | | | Fix tst_QSystemLock::processesOlivier Goffart2009-12-021-4/+4
| | | | | | | | | | | | | | | | Paths were not correct
* | | | Fixes transformation problems with QGraphicsProxyWidget.Yoann Lopes2009-12-021-1/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the paintEvent of the widget used in a QGraphicsProxyWidget, the worldMatrix was wrongly used by the painter instead of the deviceMatrix. Similar problem in the WindowsXP Style, the worldMatrix was used instead of the deviceMatrix for determining if the widget is transformed (reviewed by eblomfel). Task-number: QTBUG-5939 Reviewed-by: bnilsen Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
* | | | Merge commit 'oslo-staging-2/4.6' into upstream/4.6Olivier Goffart2009-12-0210-13/+129
|\ \ \ \ | |/ / /
| * | | Fix crash in QVector::reserve when reserving smaller size on a shared vectorOlivier Goffart2009-12-011-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We cannot call realloc with aalloc smaller than asize. Also include obvious optimisation: take the qMin computation out of the loop. Task-number: QTBUG-6416 Reviewed-by: Thiago
| * | | Extended tst_QListView::indexAt to test viewport bounds.Gabriel de Dietrich2009-12-011-1/+9
| | | | | | | | | | | | | | | | Reviewed-by: Olivier
| * | | Fix QFontCombobox autotest on X11Olivier Goffart2009-12-011-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On X11, Font might have a foundry within bracket. This foundry is set by the font combobox, and makes the font comparison fail. Make sure the other attributes (size, bold, ...) are preserved when the font is changed. Reviewed-by: Gabriel
| * | | Fix tst_qsharedmemory on UnixOlivier Goffart2009-11-301-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | executable does not end with .exe on Unix, while it is valid to call the executable without the .exe on windows Reviewed-by: Joao
| * | | Only call updateFont if the font have changed.Alexis Menard2009-11-301-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When receiving the polish event, we call updateFont only if the font has changed (from the QApplication::font()). This avoid to clear sizeHints cache. Task-number:QTBUG-6272 Reviewed-by:janarve
| * | | Do not recoginze templated types or pointers as flags.Olivier Goffart2009-11-302-1/+13
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Those types can never by flags. This fixes QML as they do not use Q_DECLARE_METATYPE in a way visible to moc. Patch by Aaron Kennedy Reviewed-by: Kent Hansen
| * | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-s60-public into ↵axis2009-11-301-1/+1
| |\ \ | | | | | | | | | | | | 4.6-staging2
| | * | Fix tst_qspinbox compilation with winscw.Liang Qi2009-11-271-1/+1
| | | |
| * | | Merge commit 'upstream/4.6' into oslo-staging-2/4.6Olivier Goffart2009-11-2712-38/+158
| |\ \ \
| * | | | compile fix for autotestThierry Bastian2009-11-271-2/+5
| | | | |
| * | | | compile fix for autotestThierry Bastian2009-11-271-1/+5
| | | | |
| * | | | Merge branch 'fixes' of ↵Jan-Arve Sæther2009-11-271-0/+41
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://gitorious.org/~fleury/qt/fleury-openbossa-clone into fleury-fixes Conflicts: tests/auto/qgraphicsanchorlayout/tst_qgraphicsanchorlayout.cpp
| | * | | | QGAL: default spacing can be unset using a negative valueEduardo M. Fleury2009-11-251-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After a default spacing is set through QGAL::setSpacing() family of methods, the user must be able to unset it. To avoid adding another public method, we enabled this feature by allowing a negative value to be passed to those methods. Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org> Reviewed-by: Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>
| | * | | | QGAL: sizeHint constraints needed by anchors parallel with the layoutEduardo M. Fleury2009-11-251-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-251-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>
* | | | | | Bump version to 4.6.1Jason McDonald2009-12-017-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | Reviewed-by: Trust Me
* | | | | | Merge remote branch 'staging/4.6' into 4.6Oswald Buddenhagen2009-11-272-0/+22
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | add qph autotestOswald Buddenhagen2009-11-252-0/+22
| | | | | |
* | | | | | Merge commit oslo-staging-2/4.6 into upstream/4.6Olivier Goffart2009-11-2715-28/+367
|\ \ \ \ \ \ | | |/ / / / | |/| | | / | |_|_|_|/ |/| | | |
| * | | | Fixed non-compiling Q*SpinBox auto-testsGabriel de Dietrich2009-11-272-2/+4
| | |_|/ | |/| | | | | | | | | | Reviewed-by: Olivier
| * | | QSortProxyModel: Crash when changing model with 2-level proxy and selected itemsGabriel de Dietrich2009-11-261-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The index mapping to the base model was being cleared before the persistant model indices. Reviewed-by: Olivier Task-number: QTBUG-6237
| * | | Don't crash via proxy model when moving QModelIndexesStephen Kelly2009-11-261-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The layoutAboutToBeChanged signal gives proxies a chance to persist QModelIndexes. The d->itemsAboutToBeMoved method is part of the process of moving the persistent indexes. d->itemsAboutToBeMoved must be called after layoutAboutToBeChanged. Otherwise persistent indexes will not be updated. Merge-request: 2219 Reviewed-by: Olivier Goffart <ogoffart@trolltech.com>
| * | | Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt-s60-public into ↵axis2009-11-261-0/+38
| |\ \ \ | | | | | | | | | | | | | | | 4.6-staging2
| | * | | Fixed crash when scrolling with deleted backingstoreJanne Koskinen2009-11-251-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Symbian we save memory by deleting widget backingstore from non-visible windows. 12-key FEP is fullscreen and causes the backing store to be deleted but still continues to scroll the view to show current caret position in focused lineedit control. Task-number: QTBUG-5922 Reviewed-by: Jason Barron
| * | | | Fix a crash in KDE/Plasma with QGraphicsView. TopLevel list of itemsAlexis Menard2009-11-261-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | was corrupted. This nasty bug was triggered when the index sort the top level list of items. We forgot to set the flag topLevelSequentialOrdering to false so when an item was removed from the top level list it was using the sibling index which can be not valid anymore since the list is not sorted by sequential order. So it let some dangling pointers in the list which make processDirtyItemRecursive crash the next paint event. Reviewed-by:bnilsen Reviewed-by:andreas
| * | | | 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
| | | | |