summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Extand test of qBinaryFindOlivier Goffart2009-10-281-1/+16
|
* Wrong caching of opaque children in QWidget.Bjørn Erik Nilsen2009-10-281-0/+42
| | | | | | | | | | | | | | | The opaque children cache was clipped to all the ancestors up to the top-level, which means whenever a widget changes geometry all the children must be invalidated. However, the bug was that we didn't invalidate the children, and that is of course slow so we don't want to do it either. A better solution is to only clip the children cache to the widget itself (widget->rect() instead of widget->clipRect()), and we can perfectly do this because the region we subtract the opaque children from is already inside the clipRect(). Auto-test included. Task-number: QTBUG-4245 (related to)
* Stabilize tst_QGraphicsView::optimizationFlags_dontSavePainterState2Bjørn Erik Nilsen2009-10-281-2/+6
| | | | | Make sure the view is painted, otherwise the transforms are identity and comparisons don't make sense.
* Changing the time we wait for the end of the animationThierry Bastian2009-10-281-3/+3
| | | | | We now wait for the animation duration + 100 (instead of 50). It makes tests more reliable on windows (and probably embedded)
* Make the QPropertyAnimation pass on windows by waiting slightly longerThierry Bastian2009-10-281-4/+4
| | | | | Timers on windows are not accurate enough to "only" wait for the animation duration + 50.
* Fix initial focus bug in ItemIsFocusScope.Andreas Aardal Hanssen2009-10-281-7/+80
| | | | | | | | | | | | | | | | The task provides an example that doesn't gain input focus when started. The fix contains two parts: one is to allow items with focus scope ancestors to become focus items even if the scope is inactive. The other is to fix up the focusItem pointers on reparent. Before, the focus scopes' focusItem pointers always pointed to itself, or the next scope. Now these items are treated no differently than other items in that respect. The change has a performance impact when reparenting a large subtree that has a sub focus item onto another item (one more dig). Task-number: QT-2331 Reviewed-by: Alexis Menard
* Double-clicking a dock widget titlebar could make it disappearThierry Bastian2009-10-281-0/+19
| | | | | | | | If it wasn't already docked on a mainwindow, its state would become unexpected. Task-number: QTBUG-945 Reviewed-by: gabi
* Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-widget-team into 4.6Jan-Arve Sæther2009-10-284-3/+130
|\
| * QSplitter would not show previously collapsed widgets.Gabriel de Dietrich2009-10-281-0/+34
| | | | | | | | | | | | | | | | | | After deleting or hiding the last non collapsed item in a QSplitter, none would be visible. We now check wether there is any non-hidden, collapsed widget, and set it to non-collapsed. Auto-test included. Task-number: QTBUG-4101 Reviewed-by: Olivier
| * Qt::escape(): also escape the quote (")Olivier Goffart2009-10-281-2/+24
| | | | | | | | | | | | | | | | This amend previous commit by removing the duplicate function. The quote need to be escaped in attributes. Reviewed-by: Thomas Zander
| * Fix XML entities in QTextDocument::toHtml()Thorvald Natvig2009-10-282-2/+31
| | | | | | | | | | | | | | | | | | If a QTextDocument contains an anchor with a & in it, this & is not escaped in the toHtml() function, meaning the resulting document can't be parsed as XML as it will contain invalid entities. Reviewed-by: Olivier Goffart Merge-request: 1753
| * Let QGraphicsItem set QObjectPrivate::wasDeleted when appropriate.Andreas Aardal Hanssen2009-10-281-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change allows children of QGraphicsObject-derived classes to check if the parent is being deleted by checking the private flag wasDeleted. Reverts 37b16d5cbb4e7bc534f690ebf50434d228b5ecfc, p4 change 9681, to allow QGraphicsItem to set QObjectPrivate's wasDeleted member before entering QObjectPrivate's destructor. The original code was in there to let the user know, via the console output, that QObject was double-deleted (e.g., when placing QObject on the stack, and also giving it a parent, so that if the parent is deleted first, bang). Reviewed-by: Aaron Kennedy Reviewed-by: Bradley T. Hughes
* | Merge branch 'fixes' of ↵Jan-Arve Sæther2009-10-2814-100/+951
|\ \ | |/ |/| | | | | | | | | | | git://gitorious.org/~fleury/qt/fleury-openbossa-clone into openbossa-fleury-fixes3 Conflicts: src/gui/graphicsview/qgraphicsanchorlayout_p.cpp src/gui/graphicsview/qgraphicsanchorlayout_p.h
| * QGAL: Add test for David Boddie bugEduardo M. Fleury2009-10-261-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current simplification code does not handle sequences with anchors pointed to different directions could not be simplified together into a sequential anchor. A (10 / 20 / 50 ) B (20 / 20 / 20) Ex: o-----------------> <----------------o The reason we don't support it yet is shown in the example above. The resulting anchor would be either: Result_1 (-10 / 0 / 30) o------------------------------------> (or) Result_2 (-30 / 0 / 10) <------------------------------------o But the current implementation assumes no anchors can have negative sizes. Hopefully, the next commits will add support for it and then enable such simplification. :-) Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
| * QGAL: identify unfeasible setups even when graph is simplifiedCaio Marcelo de Oliveira Filho2009-10-261-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The calculate graphs now can return early due to unfeasible anchor setups found out during simplification. This allows finding out problems in parallel anchors, when one anchor has maximum size smaller than the minimum size of the other anchor. The order for simplification and refreshing size hints also has been swaped: - First, refresh size hints for all anchors in the graph. If the graph is simplified, the refreshSizeHints() call will reach the children anchors. - Then, if the simplificated graph is invalid, rebuild it. During this rebuild, refreshSizeHints_helper() will be called for all levels. So in both situations we can identify an unfeasible setup. Note that this test alone is not enough to classify the graph as feasible, depending on the graph, it will still need to go through the Simplex. A test case was added and the function that traverse the graph refreshing now is called refreshAllSizeHints(). The old name was not so clear since the function will not fill only the anchors that have items associated. Last but not least, the lastCalculationUsedSimplex variable is cleared when starting calculateGraphs(), since we now can leave the function earlier, without reaching calculateTrunk(), which is the function that sets it. Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@openbossa.org> Reviewed-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
| * 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-2220-94/+992
| |\
| | * Compile fix.Denis Dzyubenko2009-10-224-31/+31
| | | | | | | | | | | | | | | | | | | | | QPanGesture was changed to use QPointF instead of QSizeF, also need to change all usages of the pan gesture. Reviewed-by: trustme
| | * 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
| | * Fixed the gestures/graphicsview manualtestDenis Dzyubenko2009-10-222-4/+23
| | |
| | * 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
| * | Update audio unit tests with clock() range checking.Kurt Korbatits2009-10-222-2/+2
| | | | | | | | | | | | | | | | | | -Check to make sure clock() return is in microseconds. Reviewed-by:Justin McPherson
* | | QFontMetrics testOlivier Goffart2009-10-271-0/+14
| | | | | | | | | | | | For commit b209ab1e2139cb5
* | | QComboBox did not emit currentItemChanged when the model was resetThierry Bastian2009-10-271-0/+33
| | | | | | | | | | | | | | | Task-number: QTBUG-569 Reviewed-by: ogoffart
* | | QVariant::isNull does not return the right result with QVariant::setValueOlivier Goffart2009-10-271-0/+8
| | | | | | | | | | | | | | | | | | Inspired by merge request 1911 Reveiwed-by: Thierry
* | | Fixed QTreeView not emitting doubleCliked when 1st col is spannedThierry Bastian2009-10-271-0/+29
| | | | | | | | | | | | | | | Task-number: QTBUG-976 Reviewed-by: ogoffart
* | | QTreeView: Make sure the state QStyle::State_Sibling is correctly setOlivier Goffart2009-10-271-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | That state used not to be set for drawing the content of the items. Also, it could be wrong for branches if there was hidden items. Reviewed-by: Thierry Task-number: related to 234930
* | | Fixes QTreeView: stylesheet :has-children pseudo selector doesn't works for ↵Olivier Goffart2009-10-271-3/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the ::item pseudo-class The State_Children was not set on the QStyleOption. Refactorized a little bit the way it was computed. Reviewed-by: Thierry Task-number: 234930 Task-number: QTBUG-3129
* | | QTableView would not correctly resize to contentsThierry Bastian2009-10-271-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | The problem was that we didn't call ensurePolished when getting the size of the sections. Task-number: QTBUG-1002 Reviewed-by: ogoffart
* | | Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-widget-team into 4.6Jan-Arve Sæther2009-10-275-16/+109
|\ \ \
| * | | Stabilize sequential animation startDelay autotest on winLeonardo Sobral Cunha2009-10-271-8/+5
| | | | | | | | | | | | | | | | Reviewed-by: thierry
| * | | Fixed a bug in QMenuBar in RTL that would display menu at the wrong placeThierry Bastian2009-10-271-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This could happen when adding actions in response to the aboutToShow signal. Task-number: QT-2596 Reviewed-by: ogoffart
| * | | Fixed crash when setting header data in QSqlQueryModel.Gabriel de Dietrich2009-10-261-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The crash (Q_ASSERT_X failure) happened when a proxy model was being attached to the QSqlQueryModel, and no query was set yet. The headerDataChanged() signal was being received by the proxy model who wouldn't check its "proxyfied" data bounds. The patch introduces a behaviour change. However, this change makes the usage of QSqlQueryModel::setHeaderData() to be more in accordance with the current documentation, and to behave in the same way as for QStandardItemModel, QTreeModel, and QTableModel. Task-number: QTBUG-4963 Reviewed-by: Olivier
| * | | stabilize test and fix warningOlivier Goffart2009-10-261-3/+3
| | | |
| * | | Drag and drop in QListWidget would not preserve the selectionGabriel de Dietrich2009-10-261-0/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now, when dropping items, these will remain selected, and in the same visual order as when dragged. Auto-test included for the items moving part. For the rest, it's a drag-and-drop thing. Reviewed-by: Olivier
* | | | Respect the per-item layoutSpacing() if the style uses that feature.Jan-Arve Sæther2009-10-271-0/+162
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | We move the QLayoutStyleInfo class out of the gridlayout engine to a common header file so that anchor layout also can utilize it. Due to that we now can have a per-item spacing we have to change the 'effectiveSpacing' argument of refreshSizeHints to just take a QLayoutStyleInfo pointer that we will later query for the actual spacing used.
* | | Fix buglet in QGraphicsItem::stackBefore().Andreas Aardal Hanssen2009-10-261-28/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by Alan. The stackBefore() implementation did not alter the insertion order if the two items' current Z values were different. The fix is to ensure it is updated, so that the stackBefore() operation takes effect should the Z values become equal in the future. Example: Current order: A-B-C-D A->setZValue(1); Current order: B-C-D-A (A moves to the end) D->stackBefore(A); Current order: B-C-D-A (unchanged, D is already before A) A->setZValue(0); Current order: D-A-B-C (now A moves back, and D moves in front) Reviewed-by: Aaron Kennedy
* | | Wrong worldTransform() on the painter in QGraphicsScene::drawForeground.Bjørn Erik Nilsen2009-10-231-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The painter's worldTransform() is updated for each item we draw, and when the DontSavePainterState optimization flag is set, this change is not protected by save() and restore(). After all the items are drawn, it means the painter is left with the last drawn item's transform. We therefore have to make sure it is reset back to whatever it was before the items were drawn. Auto-test included. Task-number: QTBUG-4973 Reviewed-by: alexis Reviewed-by: andreas
* | | Increase realiability of pauseanimation autotests on winLeonardo Sobral Cunha2009-10-231-20/+24
| | | | | | | | | | | | Reviewed-by: thierry
* | | MAke sure we call setCurrentTime when an animation is startedThierry Bastian2009-10-231-0/+9
| | | | | | | | | | | | | | | | | | This could be prevented by a pause animation currently running. Reviewed-by: Leo