Commit Graph

611 Commits (08fb81fb170392d5d6384d4abb4de251f8728362)

Author SHA1 Message Date
Shawn Rutledge b1481a1663 Fix MouseButtonDblClick synthesis from touch double-tap
When QGuiApplicationPrivate::processTouchEvent() sees that the
touch event was not handled, and calls processMouseEvent(), the latter
uses the QEventPoint with pointId 0 regardless of the original
touchpoint ID. Now it updates the persistent QEventPoint from the
original touchpoint so that a double-click event will not be ruled out
because of the timestamp delta or position delta (movement since press)
being too large.

Fixes: QTBUG-125993
Pick-to: 6.7 6.5
Change-Id: I8e9b007818107ac2329454e0ccfb2ac9e506b617
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 2a0b907f11b9c0ad46322ba06482861423246d93)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-06-11 16:36:38 +00:00
Giuseppe D'Angelo da9da78adc QGraphicsView: add a failing test
Task-number: QTBUG-53974
Pick-to: 6.7 6.5
Change-Id: Ibff3e32080a2978e533bd1f3215fec81bedb72b7
Reviewed-by: David Faure <david.faure@kdab.com>
(cherry picked from commit f27534158e64ed1fb3aacc090995ea4b2d4b26fe)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2024-06-11 00:32:25 +00:00
Ivan Solovev 3ca9877f8c QSizeF: add qFuzzyCompare and qFuzzyIsNull overloads
[ChangeLog][QtCore][QSizeF] Added qFuzzyCompare and qFuzzyIsNull
overloads for QSizeF

Drop the custom qFuzzyCompare() implementation from
tst_qgraphicsgridlayout.cpp

Task-number: QTBUG-120308
Change-Id: I32d11c1c81d0503914a8168b5e960a8c6ce943d9
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2024-05-14 14:33:21 +02:00
Frédéric Lefebvre 23ecc6ce70 tst_QGraphicsProxyWidget::tooltip_basic() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I842e1c01007cc56e07a27a6e15ff173c4f6aece2
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-05-07 17:30:33 +02:00
Frédéric Lefebvre ab2e999d1b tst_QGraphicsProxyWidget::setFocus_simpleWidget remove setActiveWindow
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number:  QTBUG-121488
Change-Id: I3819874c2fdd78d733707a375a849a7876a30d9d
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-05-06 21:01:36 +02:00
Frédéric Lefebvre f9751fe13f tst_QGraphicsProxyWidget::actionsContextMenu() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Ib33b6d750a409e5a374fcbb42dbba646582be8a7
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-05-06 11:28:15 +02:00
Frédéric Lefebvre ccbff2c08b setFocus_simpleTwoWidgets() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I5161f63321d586e72787eee5101329746f03dde1
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-05-03 20:53:33 +02:00
Frédéric Lefebvre 3d19633f5d bypassGraphicsProxyWidget() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I0a657c9aaac4684566edd212a510c7c9016117a2
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-05-03 14:04:52 +02:00
Frédéric Lefebvre 8a4728c1b9 setFocus_complexTwoWidgets() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I362ddbc98f864b5bae37d6e98dc5d9a3144848b5
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-05-02 12:47:09 +02:00
Frédéric Lefebvre d012310622 tst_QGraphicsProxyWidget::clickFocus() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Icf9c4b1378eb244edb56f900ba74469abc38314f
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-30 21:28:21 +02:00
Frédéric Lefebvre 9aaf451a1e QTBUG_6986_sendMouseEventToAlienWidget() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: If5ddc863411907793be3a8d7b226ee49b606e9e8
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-30 21:28:21 +02:00
Frédéric Lefebvre 16a34dbedf tst_QGraphicsProxyWidget::mapToGloval() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Ib5f081fb03e3abd8cb8492a6d673ade98762e26a
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-30 21:28:21 +02:00
Frédéric Lefebvre 5be227b924 tabFocus_complexTwoWidgets() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I60c873e4df7f5183bd1a9f295f6e916d224b6794
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-30 21:17:03 +02:00
Frédéric Lefebvre 9da124b01b tst_QGraphicsProxyWidget::tabFocus_complexWidget remove setActiveWindow
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Ie8496d0dc8ff0f1e085c7f218a07dd2c42e4fc14
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-30 21:17:03 +02:00
Frédéric Lefebvre 1a9bd89788 tabFocus_simpleTwoWidgets() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I71c2b7a6ef69bb2990b8d56020323b90c949f966
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-30 21:17:03 +02:00
Frédéric Lefebvre 43c7c4080b tst_QGraphicsProxyWidget::tabFocus_simpleWidget remove setActiveWindow
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I5dacd3971305e33a6d1314b798d4211425b68d68
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-30 21:17:03 +02:00
Frédéric Lefebvre 108caf0797 tst_QGraphicsProxyWidget::paintEvent() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Ia3de47e0a934d9b3a15df15d5bc3ca28691a4727
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 19:20:23 +02:00
Frédéric Lefebvre e504e71816 tst_QGraphicsProxyWidget::mouseDoubleClickEvent remove setActiveWindow
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I3810aee981bacdccc4545b69fe274bdbdde36a3d
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 19:20:23 +02:00
Frédéric Lefebvre 9ed4b3c6ce tst_QGraphicsProxyWidget::keyReleaseEvent() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Iedff54d54daa486bba39e593529dbf1b66cb7796
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 19:20:23 +02:00
Frédéric Lefebvre 8a84f8de47 tst_QGraphicsProxyWidget::keyPressEvent() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Ifc0b89bcfb97a72584b45d7fbe78c95bfb43dea2
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 19:20:23 +02:00
Frédéric Lefebvre 2f2058875e tst_QGraphicsProxyWidget::focusOutEvent() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I846094fc99830f9964374c7baee9fc96a0a36b73
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 19:20:23 +02:00
Frédéric Lefebvre 7ee85b0bfe tst_QGraphicsProxyWidget::focusNextPrevChild remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Ibbe225fff3a9854495bae5f43ad1a95abc219052
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 19:20:23 +02:00
Frédéric Lefebvre d93ec246c7 tst_QGraphicsWidget::verifyFocusPolicy() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I2e3a630036b313696f62bbd3183c0448624395e8
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 16:26:38 +02:00
Frédéric Lefebvre 462b85b7e9 tst_QGraphicsWidget::verifyFocusChain() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Ie762c7fa6bc4bf15f8580b3569e2196a5bd40b25
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 16:26:38 +02:00
Frédéric Lefebvre 3c2062f5ee tst_QGraphicsWidget::setTabOrderAndReparent() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I5bbe1cbd1e00a82504ed040347581264caf5b560
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 16:26:38 +02:00
Frédéric Lefebvre bdf136b1b3 tst_QGraphicsWidget::setTabOrder_data() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: If105d1c2db3646c7d31d72aeaa373015f175fd44
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 16:26:38 +02:00
Frédéric Lefebvre 2e6a25da7c tst_QGraphicsView::QTBUG_70255_scrollTo() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: If78234df30ca5716bd8bb23eb4297ae461ae88a8
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 16:26:37 +02:00
Frédéric Lefebvre 02f493f6d8 tst_QGraphicsView::hoverLeave() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I0d16654ed837009391967b187f8dbe5dced0849d
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 16:26:37 +02:00
Frédéric Lefebvre c65aebfad6 tst_QGraphicsView::QTBUG_5859_exposedRect() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Iafebaaf4c737c2e07dbc7a5ea1d3a5a4cd335150
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 16:26:37 +02:00
Frédéric Lefebvre ec4221a37c task255529_transformationAnchorAndViewportMargins remove setActive
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Id88665c413398c4bca844b178ad24ea23c674d89
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 14:26:37 +00:00
Frédéric Lefebvre 5680789b2f tst_QGraphicsView::inputContextReset remove() setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number:  QTBUG-121488
Change-Id: If4e12607b1fb34fcab10e57d259e876df7ea6949
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 16:26:37 +02:00
Frédéric Lefebvre 27a40eacf6 tst_QGraphicsView::inputMethodSensitivity() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I9d3645af06caaa457e00798bc099f43f5a282767
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 16:26:37 +02:00
Frédéric Lefebvre 30e638c877 tst_QGraphicsView::update() remove QApplicationPrivate::setActiveWindow
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Id9d32ad9d346219c24e29dc5f9772ea60cf372a3
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 16:26:37 +02:00
Frédéric Lefebvre 317fcbf101 tst_QGraphicsView::task239729_noViewUpdate() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I586c77e9bd5dd78c2229bd0483893c12f8601694
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 16:26:37 +02:00
Frédéric Lefebvre 7f8f27c22a tst_QGraphicsView::task207546_focusCrash() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Ic1de76054aed90ad07ee0233c45018afdf2a45c8
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 16:26:37 +02:00
Frédéric Lefebvre 83668a3762 tast187791_setSceneCausesUpdate() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Iaaff78826e74df119d4c4a8ea376e1b414da3c3d
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 16:26:37 +02:00
Frédéric Lefebvre 4232fc5c41 task172231_untransformableItems() remove setActiveWindows()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I61f03a01e6001b0ced0297ff4d9bb0d199585445
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 16:26:36 +02:00
Frédéric Lefebvre 48a2ee1e9d tst_QGraphicsProxyWidget::hoverEnterLeaveEvent remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Id5e601b2c95a25614149bd54707e9bc070979f89
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-26 19:26:07 +02:00
Frédéric Lefebvre ab0282355e tst_QGraphisScene::update2 remove QApplicationPrivate::setActiveWindow
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Ia4b06a5692eef21d0115c8efcc6fb0b074c349f5
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-26 18:59:53 +02:00
Frédéric Lefebvre 541ad18cd7 tst_QGraphicsScene::hoverEvents_parentChild() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I6b99542e8bc287030eb150e998311755d9d72a1b
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-26 18:59:53 +02:00
Frédéric Lefebvre 02ce4feba8 tst_QGraphicsScene::hoverEvents_siblings() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Ic1447c4ed8cd33a96fedf775abb363cc99b347d6
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-26 18:59:53 +02:00
Frédéric Lefebvre 855ddf8e63 tst_QGraphicsScene::removeItem() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I175883b12d2a3bcb492dea8fc190e31dbfea821a
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-26 18:59:53 +02:00
Frédéric Lefebvre c7b1f4251a task250119_shortcutContext() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Ie98bdf64973eeac91dd914af7af347cccb0ad5d3
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-26 18:19:38 +02:00
Frédéric Lefebvre 291a720d10 tst_QGraphicsView::viewportUpdateMode2() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: If3964a02e2de34cc257095e9f191e5ada600c9fb
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-23 17:40:40 +02:00
Frédéric Lefebvre 1cc5af4550 tst_QGraphicsView::viewportUpdateMode():: remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I04843e65f0611b32392ec5e5325a0113b65525e5
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-23 17:40:40 +02:00
Frédéric Lefebvre 4eea3827f1 tst_QGraphicsView::wheelEvent() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I0e16e556273bf03c42bad12fc3801c0848041a7c
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-23 17:40:40 +02:00
Frédéric Lefebvre 13c941c5c2 tst_QGraphicsView::sendEvent() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I760380166bc49fc3e4538959699141e4f03f5bd9
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-23 17:40:40 +02:00
Frédéric Lefebvre 3069aa4447 tst_QGraphicsSceneIndex::clear() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Ied2110ec9d1f7695bee2589ce4f3055ea8a78615
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-23 17:40:40 +02:00
Frédéric Lefebvre 9f670a9002 tst_QGraphicsSceneIndex::removeItems() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I64bca844698522dba989e914c95ca08620314201
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-23 17:40:40 +02:00
Frédéric Lefebvre 28876f877f taskQTBUG_42915_focusNextPrevChild() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I8f55afeb893937029e3ba05f141b9e4494ecd2d5
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-23 17:40:39 +02:00