Commit Graph

67093 Commits (159ea47e2fc8ec7225db4feed3cb8926fbb93fc2)

Author SHA1 Message Date
Jarek Kobus 159ea47e2f QThread: Reuse isMainThread()
Internally, reuse threadId and theMainThreadId.

Change-Id: Iea6e7d8fcbcaf7e2f4dbf8ab33890d0f7954edc0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2024-04-29 23:11:04 +02:00
Tatiana Borisova de0f145022 QMetaSequence and QMetaAssociation: use new comparison helper macros
Replace public friend operators operator==(), operator!=() of
QMetaSequence and QMetaAssociation
classes to friend methods comparesEqual() and
Q_DECLARE_EQUALITY_COMPARABLE macroses.

Task-number: QTBUG-120304
Change-Id: I88e9b228220d36092437bfb71ae2f053d2e99fdf
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2024-04-29 22:28:51 +02:00
Samuli Piippo 4fe3337394 rcc: don't track source file location
Generate source code without information about original location of the
source file. Useful for reproducible builds.

Task-number: QTBUG-105926
Task-number: QTBUG-105913
Change-Id: Ia4ca8d1b22751d0bf110082872b6b4228d01ff9a
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2024-04-29 19:37:29 +00:00
Frédéric Lefebvre 5e73f9a73c tst_QMdiArea::changeWindowTitle() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

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

Remove redundant calls.

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

Remove redundant calls.

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

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I1b295e3af677ade04fa945fc0e0620b730899b3e
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:37:29 +02:00
Frédéric Lefebvre 478dacbbf0 tst_QLineEdit::taskQTBUG_7395_readOnlyShortcut remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

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

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I6b297d34f8e5773010d2dfea0de8be13d546486e
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:37:28 +02:00
Frédéric Lefebvre d1c98cda92 task241436_passwordEchoOnEditRestoreEchoMode() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() reundant.

Remove redundant calls.

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

Remove redundant calls.

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

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I5a3a154bf64fceaed8df0bb3a70c2359e7fd2fb2
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:37:28 +02:00
Frédéric Lefebvre 8aced39874 tst_QDateTimeEdit::editingRanged() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

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

Remove redundant calls.

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

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I4cd15a50f3925f6f998d73d7bca24cecb794bd58
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:26:18 +02:00
Frédéric Lefebvre e3a0ed45e2 tst_QMdiSubWindow::restoreFocusOverCreation() remove setActiveWindow()
2f6fe3a268 as made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Icc69f25bf903590fdb93ad2a2e3bd5b1b50b35f5
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:26:18 +02:00
Frédéric Lefebvre ba2f274418 tst_QMdiSubWindow::emittingOfSignals() remove setActiveWindow()
2f6fe3a268 as made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I25a572a2aa421f7acbcdd7d036f300e8160d0d32
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:26:18 +02:00
Frédéric Lefebvre fe1340aef5 tst_QMdiSubWindow::mainWindowSupport() remove setActiveWindow()
2f6fe3a268 as made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I34219f497e91857dd3971c1d6f96fb79a08f12ab
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:26:18 +02:00
Frédéric Lefebvre 42dfece6f3 tst_QMdiArea::tabBetweenSubWindows() remove setActiveWindow()
2f6fe3a268 as made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I0c5f0e2fcc93c5ec8d15fafe9142cf948459a320
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:26:17 +02:00
Frédéric Lefebvre cd37cda528 tst_QMdiArea::dontMaximizeSubWindowOnActivation remove setActiveWindow
2f6fe3a268 as made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I186538fb40d3d040bdf86d4bffb9853b92ed3a07
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:26:17 +02:00
Frédéric Lefebvre 888459ff10 tst_QMdiArea::activateNextAndPreviousWindow() remove setActiveWindow()
2f6fe3a268 as made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: If8dff66e64395012955e293d82a1e663a6bd92cc
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:26:17 +02:00
Frédéric Lefebvre fd2b4235d3 tst_QMdiArea::closeWindows() remove SetActiveWindow()
2f6fe3a268 as made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Ibe49e4469072df21d44d8411c1e57d24cd4b13e4
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:26:17 +02:00
Frédéric Lefebvre 001c13fd2c tst_QMdiArea::currentSubWindow() remove setActiveWindow() lower section
2f6fe3a268 as made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I18e1233807cdde8c1f26c86fbbe7f34fc1311c0f
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:26:17 +02:00
Frédéric Lefebvre 545d10d471 tst_QMdiArea::currentSubWindow() remove setActiveWindow()
2f6fe3a268 as made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Idfdc6354c0083fff0b4d0d14213c08ac4415c950
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:26:17 +02:00
Frédéric Lefebvre 88b03ba7bf tst_QMdiArea::activeSubWindow() remove setActiveWindow()
2f6fe3a268 as made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

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

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: If72292a4d9281da4fea6f40b032cece353c51fa1
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:26:17 +02:00
Frédéric Lefebvre 133d15584c tst_QAbstractItemView::deselectInSignleSelection remove setActiveWindow
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I9a22be07862b47c013686173da04315ccdd6bf1d
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:26:17 +02:00
Frédéric Lefebvre 33f703bf4c tst_QAbstractItemView::testChangeEditorState() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

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

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I163589828d64e837b9c170e724bc44251e4f64ef
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:20:26 +02:00
Frédéric Lefebvre 8beaa72134 tst_QItemDelegate::enterKey remove QApplicationPrivate::setActiveWindow
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I13872112fe33457c8843eb6982d8231022a5083a
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:20:26 +02:00
Frédéric Lefebvre ac76914753 tst_QItemDelegate::decoration() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: If9058e015fa8223c3c318ba240eddf2ab24949be
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:20:26 +02:00
Frédéric Lefebvre 6776c828e2 tst_QItemDelegate::dateTimeEditor() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove 2 redundant calls.

Task-number: QTBUG-121488
Change-Id: I8f8d6e5988759836a880c6c141605f0593f81098
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:20:26 +02:00
Frédéric Lefebvre 715be09f94 tst_QHeaderview::statusTips() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I685b8306d985418e06cc1ce21e872bb6586818e4
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:20:25 +02:00
Frédéric Lefebvre c44fa48477 tst_QHeaderview::focusPolicy() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Ie2be1421019d09d12d1860b22fe1c98fd8bc2a59
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:20:25 +02:00
Frédéric Lefebvre 3cb3a2511c tst_QAbstractView::inputMethodEnabled() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove 6 redundant calls from the //Check focus by switching the
activation of the window to force a focus in section.

Task-number: QTBUG-121488
Change-Id: I9f1ff1680ae01253261717ee81920ec38dfe8847
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 21:20:25 +02:00
Marc Mutz 59d24e3615 QSettings/removed_api: don't return <void expr>
Fixes clazy-returning-void-expression.

Amends 4cf299eb5b.

Pick-to: 6.7 6.5
Change-Id: I6192deb82afe9a5ba7ddaf6203d4046f518c545a
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2024-04-29 21:20:25 +02:00
Ali Kianian 148add03f3 Enable resetting a sort model by descending order
By this change, sort(any_negative_number) will stay unchanged, and it
unsorts the model so that the order will be the same as the source
model.
But when the second argument of the sort is set to DescendingOrder
deliberately, the result will be the same as the source model, but in
reverse order.

[ChangeLog][QTCore][QSortFilterProxyModel] QSortFilterProxyModel.sort
sorts the proxy by the source model index descending if the sort
column is less than zero and the order is descending.

Fixes: QTBUG-124863
Change-Id: I73f9d3b500a929efa969cf24ef3d8fe758167645
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2024-04-29 22:20:25 +03:00
Even Oscar Andersen f9a994b86a wasm: Add qurl autotest
The testThreading test was deadlocking due to waiting for
threads to start. Rewritten the wait to use a QEventLoop

Change-Id: If1a864c054c1de1239694b201a4cf0e8186fc1d0
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
2024-04-29 19:20:23 +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 46d1e61ca7 checkEmbeddedLineEditWhenStyleSheetIsSet() remove setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

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

Remove redundant calls.

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

Remove redundant calls.

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

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Iea8d365bb6e07663517aa710d4730e728d3d1533
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-04-29 19:20:22 +02:00
Santhosh Kumar 8f283aa299 Fix progress bar rendering issue when using windows 11 style
The Windows 11 style checks for QProgressBar type and gets the
respective orientation required for rendering. This creates an issue
when we use QStyleItemDelegate as it's not QProgressBar type. This patch
removes that condition and gets the orientation information through the
style option similar to Windows Vista style.

Fixes: QTBUG-124447
Pick-to: 6.7
Change-Id: Ic2b36d79d7af017262e44dd2800ad45fbe63f8f2
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
2024-04-29 18:26:15 +02:00
Lena Biliaieva fa456ad550 Add QHttpHeaders to QNetworkRequest
Added headers() and setHeaders() methods to QNetworkRequest.

[ChangeLog][QtNetwork][QNetworkRequest] Added headers() and setHeaders()
methods to QNetworkRequest, which provide an interface to work with
QHttpHeaders.

Task-number: QTBUG-107751
Change-Id: I2e1dc7cb2efab5903eb7ff23b75d01aefe13273d
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2024-04-29 18:26:15 +02:00