| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
The tabbar items were drawn also under the left/right scroll buttons.
Pick-to: 6.11
Change-Id: I32008ea54b597c5a23d7f0fd218055fa2ac54ae7
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
During application shutdown our global static list of loggers may
be torn down, and then some other part of Qt issues logging during
its own destruction.
For example, QThreadStorage will emit:
QThreadStorage: entry 1 destroyed before end of thread 0x106432bd0
which would crash:
frame #7: 0x000000010a8d97a8 QtCore`qt_assert_x(where="Type *QGlobalStatic<QtGlobalStatic::Holder<QTest::(anonymous namespace)::Q_QGS_loggers>>::operator->() [Holder = QtGlobalStatic::Holder<QTest::(anonymous namespace)::Q_QGS_loggers>]", what="The global static was used after being destroyed", file="/Users/torarne/dev/qt/qtbase/src/corelib/global/qglobalstatic.h", line=88) at qassert.cpp:126:14
frame #8: 0x0000000101016e5c QtTest`QGlobalStatic<QtGlobalStatic::Holder<QTest::(anonymous namespace)::Q_QGS_loggers>>::operator->(this=0x00000001010808c8) at qglobalstatic.h:87:9
frame #9: 0x0000000101018f78 QtTest`QTest::messageHandler(type=QtWarningMsg, context=0x000000016fdfb848, message=0x000000016fdfb790) at qtestlog.cpp:308:30
frame #10: 0x000000010a131018 QtCore`qt_message_print(msgType=QtWarningMsg, context=0x000000016fdfb848, message=0x000000016fdfb790) at qlogging.cpp:2133:9
frame #11: 0x000000010a12bc50 QtCore`qt_message(msgType=QtWarningMsg, context=0x000000016fdfb848, msg="QThreadStorage: entry %d destroyed before end of thread %p", ap="\U00000001") at qlogging.cpp:411:5
frame #12: 0x000000010a8d9904 QtCore`QMessageLogger::warning(this=0x000000016fdfba30, msg="QThreadStorage: entry %d destroyed before end of thread %p") const at qlogging.cpp:651:5
frame #13: 0x000000010a62b8b8 QtCore`QThreadStoragePrivate::finish(tls=0x00000008c6c102e8) at qthreadstorage.cpp:169:17
frame #14: 0x000000010a617aec QtCore`QThreadPrivate::finish()::$_0::operator()(this=0x000000016fdfbb20) const at qthread_unix.cpp:468:9
frame #15: 0x000000010a6159a4 QtCore`void (anonymous namespace)::terminate_on_exception<QThreadPrivate::finish()::$_0>(t=0x000000016fdfbb20) at qthread_unix.cpp:380:5
frame #16: 0x000000010a615960 QtCore`QThreadPrivate::finish(this=0x00000008c707c000) at qthread_unix.cpp:450:5
frame #17: 0x000000010a617190 QtCore`destroy_current_thread_data(data=0x00000008c6c10280) at qthread_unix.cpp:172:19
frame #18: 0x000000010a617330 QtCore`(anonymous namespace)::QThreadDataDestroyer::EarlyMainThread::~EarlyMainThread(this=0x000000010aa9e640) at qthread_unix.cpp:232:17
frame #19: 0x000000010a6172b4 QtCore`(anonymous namespace)::QThreadDataDestroyer::EarlyMainThread::~EarlyMainThread(this=0x000000010aa9e640) at qthread_unix.cpp:229:9
frame #20: 0x0000000181ac542c libsystem_c.dylib`__cxa_finalize_ranges + 480
frame #21: 0x0000000181ac51ec libsystem_c.dylib`exit + 44
Pick-to: 6.11 6.10 6.8
Change-Id: Ie85788e49a34aa75fe44b52fb488bd0e763b78f9
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
|
| |
|
|
|
|
|
|
| |
[ChangeLog][CMake] QT_TARGETS_FOLDER has been taken out of technical
preview.
Change-Id: I48252087082213e582a3cefcde284e5e87e679ff
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
| |
|
|
|
|
|
|
| |
[ChangeLog][CMake] QT_RESOURCE_PREFIX has been taken out of technical
preview.
Change-Id: I78333f81bb7030ba3dc280f0d65fb595e01c8dbe
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
| |
|
|
|
|
|
|
| |
[ChangeLog][CMake] The variables QT_DEPLOY_SUPPORT and
QT_ENABLE_VERBOSE_DEPLOYMENT have been taken out of technical preview.
Change-Id: Ie05d671933271126205c1710d76217de5d2d4d97
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
The command has matured enough by now.
[ChangeLog][CMake] qt_finalize_project has been taken out of
technical preview.
Change-Id: If465cb229709b5e5efbaf71e41c655d2860bdc9f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
The command was introduced in 6.0 and has matured enough.
[ChangeLog][CMake] qt_extract_metatypes has been taken out of
technical preview.
Change-Id: Ic5825ade24e6e49b01d6d09a871968b7bf4bd0c2
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
The command was introduced in 6.5 and has matured enough.
[ChangeLog][CMake] qt_deploy_translations has been taken out of
technical preview.
Change-Id: I3823753489b80508a8a805d2e34c3df2e923975c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Configuring a developer build with -nomake doc-snippets was still
building the doc snippets, because the feature value was set to ON.
QT_BUILD_DOC_SNIPPETS is initialized with FEATURE_doc_snippets and
FEATURE_developer_build. We use this variable for the doc_snippets
feature's AUTODETECT value. This way, we have consistent values for
QT_FEATURE_doc_snippets and QT_BUILD_DOC_SNIPPETS.
Pick-to: 6.11
Change-Id: I108b02ca2c548706d0fdd538f6ae6b7d1704fadc
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Setting QT_NO_XCODE_MIN_VERSION_CHECK to ON will now skip the Xcode
installation check. This is necessary for people who have only the
toolchain installed without Xcode.
Fixes: QTBUG-138427
Pick-to: 6.10 6.11
Change-Id: I9c811640bad90fdac0d63b4b6f21371053ce5bf8
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
| |
|
|
|
|
|
|
| |
Extend the detection of the MSVC_VER variable and make Visual Studio 2026 known to the vcxproj generator.
Pick-to: 6.11 6.10 6.8 6.5
Change-Id: I256fdf5f80bf0dd7b024ea3494e3b0dbfd486525
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
|
| |
|
|
|
|
|
|
| |
Amends commit 4f9246bbaba7d491a0cbbc678a010eac52b69fb2.
Change-Id: If07e5ad121990e9b7b89cf02aa8e9d65f0194d49
Pick-to: 6.11
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
It was introduced in 6.11 only as porting aid. We don't need to keep the
implementation around.
Amends commit 9adaf8505a9eb9d7acb7fee6aeac5341aa24a074.
Pick-to: 6.11
Change-Id: I36e7ae5a92b534eb8961f18986c5e040444c7f60
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
setAt() is a better name.
Amends commit 9adaf8505a9eb9d7acb7fee6aeac5341aa24a074.
This was found in API review.
Pick-to: 6.11
Change-Id: I4560273961a39e8d60be3c7e7a51cf81e2a8c85e
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
|
| |
|
|
|
|
|
|
| |
[ChangeLog][Third-Party Code] libjpeg-turbo was updated to version 3.1.3
Pick-to: 6.11 6.10 6.8 6.5 5.15
Change-Id: Ic402772f54e34082694693e0fc6b61bd0c556825
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
I'm not sure when it was last used, or what the purpose was, but
it's not in use today, so let's take the opportunity to delete it.
Somewhat amends commit 587d64507a0e419c089a83d0cf30026bf3b6bd20.
Pick-to: 6.11 6.10
Change-Id: I9facb8cc3250eeaf6d9196f9f5594e1554f5cfa6
Reviewed-by: Mate Barany <mate.barany@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
To allow binaries to be used on windows 10 even if compiled with support
for QIORing.
Task-number: QTBUG-136763
Pick-to: 6.11
Change-Id: I1cc15c794e90dd5e8fe82391075f7ee8c532c68a
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After creating a project, qt-cmake-create displayed the following build
instructions:
mkdir build
cd build
qt-cmake /project-location
cmake --build /project-location
The last line is wrong and should point to the build dir, not the source
dir. Correct this.
Pick-to: 6.8 6.10 6.11
Fixes: QTBUG-140863
Change-Id: If55c0f2d29f9b239ea5ab04bea54d9e320e4ef8c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the native backend (where one is supported) reports a failure in
its init() function, fall back to create a backend of the threadpool
variant.
This required changing the hierarchy a bit so they can co-exist -
without turning this into a fully plugin-ized class - as well as making
the thread and future features mandatory for the async-io feature, so
there is an actual fallback guaranteed to be available.
Task-number: QTBUG-136763
Pick-to: 6.11
Change-Id: Ib87c42bb67eec446278be2e43ca76f594155ab84
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
According to the linked bug report it was fixed for VS 17.10
which lists 19.40 as the bumped version for its toolset.
https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes-v17.10#17100--visual-studio-2022-version-17100
Pick-to: 6.11
Change-Id: I540b4a9b9a00ec573052f4cd90ac5be0a9549532
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
The logic assumed the relevant screen was the main/primary screen,
which caused us to misreport the safe areas for full screen windows
that covered the notch when that display wasn't the main screen.
Fixes: QTBUG-142465
Pick-to: 6.11 6.10 6.8
Change-Id: I5c5f25b87ecd90858234e7ae6de7c4127c4a9551
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
qFuzzyCompare() requires that neither argument is numerically
zero. This cannot be guaranteed for the parameters of a "TCB" spline;
indeed, Wikipedia says t = b = c = 0 is "the default":
https://en.wikipedia.org/wiki/Kochanek%E2%80%93Bartels_spline#Parameters_and_Effects
Fix by using the new QtPrivate::fuzzyCompare() function, which does
things in the correct way.
As a drive-by, put the operators at the beginning of continued lines,
as requested by https://wiki.qt.io/Qt_Coding_Style#Line_breaks Item 2,
make the operator a hidden friend instead of a member function, and
explicitly use qFuzzyCompare() instead of operator== for the QPointF
member.
The latter drive-by change will need to be dropped from the 6.5
pick-to, because the overload didn't exist in 6.5, yet (added by
fa0d77e290f5ccb5afa7d02716f8726aa6b810e6 for 6.8).
Amends b9f0bde16e85161666d5090952955bebacc40f89.
Pick-to: 6.11 6.10 6.8 6.5
Task-number: QTBUG-142020
Change-Id: I76d1adefd39154d7a39454d676dbfd5dfcaf9c1d
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Use qobject_cast<> or the comparision of the QTipLabel staticMetaObject
pointer to determine if the object is a QTipLabel instead relying on a
string compare. This will give us a compile time error when the name of
this internal class changes or goes away.
Pick-to: 6.11 6.10 6.8
Change-Id: Ie54342bd87fcb6688f082268464bfda5134de04c
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The QTls OpenSSL backend on Unix should ignore any broken symlinks
encountered rather than attempting to add the empty certificate path
generated after path canonicalization to the list of trusted system
certificates.
Current Qt code rejects such empty paths due to using
`QSslCertificate::fromFile`, but Qt 6.9- instead used
`QSslCertificate::fromPath` which (before Qt 6.9.2) used to interpret
an empty path to mean “add everything below the current working
directory as potential certificate”!
On all newer versions this only avoids unnecessarily adding an empty
path to the list of certificates.
Change-Id: I94136b33670be2fa42531fc3c74db432bad67f4a
Pick-to: 6.11 6.10
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
QtMultimediaQuick links against QtMultimediaPrivate. Since
QtMultimediaPrivate is an interface library, we did not add its master
header to the precompiled headers of QtMultimediaQuick. However, it's
likely that if one uses a private module then headers of the public
module are used.
Now, we don't discard all interface libraries in
qt_update_precompiled_header_with_library but
- detect if it's a private Qt module
- retrieve the public Qt module target
- call qt_update_precompiled_header_with_library with that
Fixes: QTBUG-142078
Change-Id: Ic0eff21b8265cd622202efdd4ffd878e1f1fdea1
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
| |
|
|
|
|
|
|
| |
Explain where to set the variable.
Task-number: QTBUG-121706
Change-Id: Iebe2fe2f36b7ec3706549869c85f485a67d28156
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
|
| |
|
|
|
|
|
|
|
| |
The text color for accent buttons is textOnAccentPrimary.
Pick-to: 6.11 6.10
Change-Id: Id9088439374186d45a8f07e0db8ab688d7266602
Reviewed-by: Wladimir Leuschner <wladimir.leuschner@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Especially useful for clients who don't use the PUSH_PROMISE
functionality and don't require buffering the data.
We add the QHttp2Stream::Configuration struct to allow customizing
stream behavior. Every stream comes with a configuration and the default
constructed objects represents that. The configuration is per-stream
and does not change during the lifetime.
Add a testcase with further extensibility in mind for further stream
configurations.
Task-number: QTBUG-142473
Pick-to: 6.11 6.10
Change-Id: I1e862f4996baa61f024f40516f74fc052a9b57c4
Reviewed-by: Alexey Edelev <semlanik@gmail.com>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
... so that there is a way to access downloadBuffer() /
takeDownloadBuffer() when the signal is emitting and not afterwards.
Add the 'last()' functionality (c.f. QList::last) so that we can get a
cheap reference to the just inserted buffer entry.
Task-number: QTBUG-142473
Pick-to: 6.11 6.10 6.8
Change-Id: I263322ec8a83cd29294b60c139a1ec3dab698ecb
Reviewed-by: Mate Barany <mate.barany@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Alexey Edelev <semlanik@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Error was:
fatal error: file '.../src/3rdparty/chromium/build/precompile.h' \
has been modified since the precompiled header \
'obj/cc/paint/paint/precompile.h-cc.gch' was built: mtime changed \
(was 1765440170, now 1765463105)
note: please rebuild precompiled header
Fixes: QTBUG-131650
Pick-to: 6.11 6.10 6.8 6.5
Change-Id: If3b46e7d3fc8e5aa9d26020fad962bffe604d590
Reviewed-by: Alexey Edelev <semlanik@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
QUntypedPropertyBinding is declared in a public header file and
referred to in the documentation of QUntypedBindable. It has multiple
documented members but the \class topic was missing.
Fixes QDoc warnings such as
(qdoc) warning: No output generated for function
'QUntypedPropertyBinding::QUntypedPropertyBinding()' because
'QUntypedPropertyBinding' is undocumented
Pick-to: 6.11
Task-number: QTBUG-141665
Change-Id: Id419bc448d15fb66ac74d396ea81320aba12696b
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
Make sure there is a value in environment value, because that
value is used later when Axivion analysis results are uploaded
into dashboard server.
Task-number: QTQAINFRA-7599
Pick-to: 6.11 6.10 6.8
Change-Id: Id29d08a6af06ad1b224dbf91b938a23a1cebf801
Reviewed-by: Toni Saario <toni.saario@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Resolves multiple QDoc warnings of type "No output generated for X::Y
because X is undocumented."
Pick-to: 6.11
Task-number: QTBUG-141665
Change-Id: I9b2d7b1ecfb694316e32801839f89d543ea2f861
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
...so static code checkers will not complain about ignoring
remainders or fractional parts of the division anymore.
Change-Id: If57e1d3a9229424ac382c5f1f6aee8ddba481714
Coverity-Id: 898602
Coverity-Id: 898603
Pick-to: 6.11 6.10 6.8 6.5
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes the following QDoc warnings:
* (qdoc) warning: Can't link to 'qt_add_android_permission()'
* (qdoc) warning: Can't link to 'raiseError(const QString &message)'
-> raiseError() now takes QAnyStringView
* (qdoc) warning: Can't link to 'I18N Example'
* (qdoc) warning: Can't link to 'Hello tr() Example'
-> Examples were removed, replace with 'Localized Clock' example
* (qdoc) warning: Can't link to
'QCharConverter::FinalizeResult::Error::NoError'
Pick-to: 6.11
Change-Id: I8e11a8896dd10652852e81c5d7ddf080f69aba37
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Resolves multiple QDoc warnings of type "No output generated for X::Y
because X is undocumented."
Pick-to: 6.11
Task-number: QTBUG-141665
Change-Id: I6a597f6979151565fcee36964f892976964be75d
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Qt Gui documentation refers to a number of types/topics from the
Qt Quick Controls module, add it as a documentation dependency to
fix linking issues.
Pick-to: 6.11 6.10
Change-Id: I541cc637c6de1daa822609ab596f82adfc0f9e45
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
|
| |
|
|
|
| |
Change-Id: I788b0b0b10284703aaf4153e2b714444a3fbcf44
Reviewed-by: Antti Kokko <antti.kokko@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
...if openssl-linked is enabled.
[ChangeLog][QtCore] The openssl-hash feature is now enabled by default
if openssl-linked is on. This enables a more robust implementation of
QCryptographicHash.
Fixes: QTBUG-132271
Change-Id: I1f39238fa316543e125e4535d7608c0e8e59278d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
|
| |
|
|
|
|
|
|
|
|
|
| |
-Some URLs give 404
-Some bugreports were resolved in Qt 5.1x
-Some URLs no longer referenced in Qt 6
Task-number: QTBUG-142088
Pick-to: 6.11
Change-Id: Ic4ae92b3f74ce6f62484453b8943d6b149269bc3
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Testcase: ./tst_qreadwritelock heavyLoadLocks
When the test run under release mode on arm64, all the spawned threads
may block without this fix. When the test run with optimization
enabled and assertions enabled and the assertions for !mutex.try_lock()
are removed from the entry of QReadWriteLockPrivate::
lockFor{Read,Write}, random assertion failures may happen without this
fix.
The reason for the race is because when a lock is uncontended locked and
being converted into a contended lock, no synchronization happens
between the initialization of new allocated QReadWriteLockPrivate object
and the use of the existing QReadWriteLockPrivate object in
lockFor{Read,Write}. QReadWriteLockPrivate objects are allocated from a
statically allocated freelist and it is of high probability that the
newly allocated object has just been released. The possible execution
order that leads to a data race is described as follows:
Suppose there are three threads T1, T2, and T3, and T1 holds the write
lock initially. T1 first releases the lock, and then gains the read
lock, while T2 tries to gain the write lock, and T3 tries to gain the
read lock. The interleaved execution order is as follows, where <- means
a normal memory write, <1> means a memory address of a
QReadWriteLockPrivate object, : means a return value, #n means a
synchronization point. For abberviation, wc denotes writerCount and rc
denotes readerCount. The .h/.c and the number in the parentheses denotes
the line number in qreadwritelock.h/.cpp.
T2 T1 T3
unlock() lockForRead()
d = d_ptr.loadRelaxed(): <1> (.h 52) d = d_ptr.loadRelaxed(): <1> (.h 52)
<1>->mutex.lock() (.c 393) d = d_ptr.loadAcquire(): <1> (.c 229)
<1> <-{wc = 0}(rc should be 0) (.c 397) <1>->mutex.lock() ... (.c 236)
d_ptr.storeRelease(null) #1 (.c 409)
<1>->release() (.c 410)
<1>->mutex.unlock() #2 (.c 412)
lockForRead() <1>->mutex.lock() returns #2
d = d_ptr.loadRelaxed(): null (.h 93)
lockForWrite() d_ptr.testAndSetAcquire(1) #3 (.h 81)
d = d_ptr.loadRelaxed(): 1 (.h 116)
val = allocate -> <1> (.c 321)
// ^ suppose <1> is reused here
<1> <-{rc = 1}(wc should be 0) (.c 325)
d_ptr.testAndSetOrdered(<1>) #5 (.c 326)
d = d_ptr.loadAcquire(): <1> #6 (.c 335) d_ptr.loadRelaxed(): <1> (.c 237)
<1>->mutex.lock() ... (.c 342) // Here T3 sees the d_ptr load result
// as <1>, which is the same as
// before, thinking it unchanged and
// thus continues to execute
// d->lockForRead().
// T3 here has no synchronization T2,
// but had synchronization with T1 at
// #2. So T3 may see the stale data
// previous written by T1 to <1>, i.e.
// wc = 0, rc = 0
<1> <-{rc = 1} (.c 432)
<1>->mutex.unlock() #4 (.c 248)
<1>->mutex.lock() returns #4
d_ptr.loadRelaxed(): <1> (.c 343)
// The same happens to T2 here, it continues
// to execute d->lockForWrite().
// T2 here is synchronized with T3 at #4,
// so T2 must see the data written by T3
// to <1>, i.e. wc = 0, rc = 1
<1>->writerCond.wait() (.c 455)
After the above interleaved execution, T2 is blocked while T3 and T1 are
holding the read lock, but in the QReadWriteLockPrivate object, the
readerCount is 1, which is incorrect. This might further lead to
deadlock if readerCount becomes -1 after the two readers release the
lock or letting a writer to proceed when only one of the readers
releases the lock.
The fix changes the relaxed load of d_ptr in lockFor{Read,Write} after
the acquire of the mutex to an acquire load, to establish
synchronization with the release store of d_ptr when converting from an
uncontended lock to a contended lock.
Fixes: QTBUG-142321
Change-Id: I5a570471b52359dd65f309e644d9aacfd58ce943
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As pointed out by ClangSA highlighing in QtCreator, but also by
Coverity, the way the TCBPoint default constructor was written meant
that _t, _c, and _b were left uninitialized even if the user
value-initialized a TCBPoint object:
TCBPoint p = {}; // ought to zero-initialize, but doesn't
Fix by removing all the constructors. Being just a POD^Waggregate is
more than sufficient for this type and aggregate initialization
behaves predictably:
TCBPoint p; // partially-formed (_t, _b, _c are uninitialized)
TCBPoint p = {}; // well-formed, value-initialized: _t, _c, _b are 0.0
Amends b9f0bde16e85161666d5090952955bebacc40f89.
Coverity-Id: 11609
Pick-to: 6.11 6.10 6.8 6.5
Change-Id: I301e5a7b68e86ddf967348b683f7a97fdc0b598d
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
| |
QObject::tr() should be avoided.
Amends eca2c9cfa7c7e22f0c5ebf036aad192f3c24d0e6.
Task-number: QTBUG-141571
Pick-to: 6.11
Change-Id: If8ae1803ed6623e70622ccd34d65a12b957ed117
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
insertColumn can insert a data element, or a range of data elements,
which then inserts one element from the source range for each row.
insertColumns can insert a range of data elements (which is then the
data inserted into each row), or a range of ranges of data elements (in
which case we insert one range from the source for each row).
Try to constrain this by inspecting the input data type, and allowing
only compatible data elements, as well as ranges holding compatible
data elements.
Make the API test more specific - test with lists of integers, so that
we can confirm that such input data wouldn't be allowed to add columns
to a model holding pointers.
Pick-to: 6.11
Change-Id: I1b67510b3f70f147530a3ae453b01328f2e639d2
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
|
| |
|
|
|
|
|
|
|
|
| |
Use std::is_swappable instead of rolling our own.
Amends 2812579a667036eafcf238def42687ca2388e21f
Pick-to: 6.11 6.10
Change-Id: I688b7b9eba702dd3e60a03d3df86392eaaec0d4f
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
All mutable at() overloads return a reference wrapper object, so no need
for decltype(auto) return types.
All const at() overloads for rows return either a reference, or a view
wrapper on the row, so we use decltype(auto) consistently for those, as
we want to return a const ref (and not a value) if we get one from the
range.
The at() overloads for getting a value return either the const data
type, or a DataReference wrapper, so we can either be explicit or
use auto.
Remove the qdoc-only type aliases for (const)row_reference, as they are
no longer used in documentation.
Pick-to: 6.11
Change-Id: I319be33a9db2ca61a95eebcde34d83b35b5013b9
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
|
| |
|
|
|
|
| |
Pick-to: 6.11
Change-Id: If53710c462661f2123e99bbf7a91a67d8a967006
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
|
| |
|
|
|
|
|
|
|
| |
Remove some unneeded headers and avoid two useless conversions from/to
QPoint(F).
Pick-to: 6.11 6.10 6.8
Change-Id: Ieae6df74e4bd2bdba9498f86ec490520408e4c20
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
|
| |
|
|
|
|
|
|
|
| |
No need to fiddle around with the devicePixelRatio here - QIcon does
this internally.
Pick-to: 6.11
Change-Id: I8ef5e9c70e073ea7edcb678e3a072f557040e1f0
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Asserts triggering signify programming errors in the testrunner.
For the same reason, change also a pre-existing AssertionError exception
raised with bad XML input file to a dedicated exception.
Pick-to: 6.11 6.10 6.8
Change-Id: I5e5cc746df60075e02964efd97d1a37dc401925f
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Frederic Lefebvre <frederic.lefebvre@qt.io>
|