Commit Graph

935 Commits

Author SHA1 Message Date
Paul Wicking 2164c014aa Add .gitreview file
`git-review` is a command line tool for interacting with Gerrit.
Some IDEs offer support for this tool, either natively or through
plugins. The tool relies on a configuration file, .gitreview. Adding
this configuration file to our repositories simplifies initial setup
for contributors that use the tool directly or through their IDE of
choice.

The configuration file adds a remote called 'gerrit'. This is the
default for the tool, and also the name set for
codereview.qt-project.org by Qt's `init-repository` script. Thus,
the configuration should work seamlessly alongside other repository
helpers.

As the file format doesn't seem to be designed with comments in mind,
add it to the other version control system exemptions in REUSE.toml.

Task-number: QTBUG-132604
Pick-to: 6.9 6.8
Change-Id: I4296d81b07bf3b0300693d4914b7eb64eeb25474
Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
2025-02-25 15:39:40 +01:00
Axel Spoerl 97ae4c79bf doc: Remove ConversionFlags and ConverterState documentation
ConversionFlag enum values are documented as a type alias under its
corresponding QFlags class.
ConverterState has an empty typealias documentation.

Both are only built, if Qt is configured without QT_CONFIG(textcodec).
The documentation, however, is built unconditionally.

Wrapping documentation in an ifdef still results in warnings.
Remove documentation altogether, because enum values are
self-explanatory.

Task-number: QTBUG-133892
Pick-to: 6.8
Change-Id: I870effd6654f0cda161e2128ccb9e51ac491a34b
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
(cherry picked from commit db733a992e)
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2025-02-24 08:01:36 +00:00
David Boddie e210f2ff94 doc: Add qtquick as a documentation dependency
Task-number: QTBUG-133892
Pick-to: 6.8
Change-Id: I4b5458beeff4e5981c90b3332203769d08bab07d
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
(cherry picked from commit 5a6b412bed)
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2025-02-24 08:01:33 +00:00
David Boddie bc146c999b doc: Remove invalid reimp commands
Remove invalid reimp commands.
Task-number: QTBUG-133892
Pick-to: 6.8

Change-Id: I9d4da929456d702e0c204ec4f1c0875b3f0ec168
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2025-02-24 08:01:29 +00:00
Qt Submodule Update Bot 57f5f1c3f3 Update dependencies on 'dev' in qt/qt5compat
Change-Id: I20ae36246f8ba3a2ea4e880e8a2a6bb6530af2bb
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-02-24 08:01:27 +00:00
Alexei Cazacov 4aeeb4a4ef Doc: Merge Qt Graphical Effects docs. Fix the tree
This commit fixes the tree broken with 616754.

Fixes: QTBUG-132209
Pick-to: 6.9 6.8
Change-Id: I57846f54928f6ac32234748d08db244f917720ce
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2025-02-17 14:35:22 +00:00
Safiyyah Moosa 99c4232e53 Doc: Merge Qt Graphical Effects docs
Currently there are two pages that describe the Qt Graphical Effects
module, namely, qtgraphicaleffects5-index.html and
graphicaleffects5.html. These pages contain most of the same
information.

This patch merges the information from both pages into one page,
namely, qtgraphicaleffects5-index.html. It keeps the categorization of
types from graphicaleffects5.html. It deletes redundant information on the page,
graphicaleffects5.html.

Fixes: QTBUG-132209
Pick-to: 6.7 6.8 6.9
Change-Id: I05eef8a4eaf7d86fbd18d08e58eb5ff7a0a9bb09
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2025-01-24 10:20:37 +01:00
Marc Mutz 2d8df31902 Fix QFile::open() Easter Egg
Fix the delayed marking of QFile::open() as [[nodiscard]] in this
module, too.

Pick-to: 6.9 6.8 6.5
Change-Id: I7b1d76cc23c2ce1dfb8c03ca945dcecb6c54988f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2025-01-24 06:24:07 +00:00
Marc Mutz 736f207cce QtSAX: replace QScopedPointer with std::unique_ptr use
Marking the whole module as QT_NO_SCOPED_POINTER is still blocked
by QtCore headers not being QT_NO_SCOPED_POINTER-clean.

Pick-to: 6.9 6.8
Task-number: QTBUG-132215
Change-Id: I0759032f028595b6957b125245d3ff9d302274bd
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
2025-01-24 05:39:25 +00:00
Qt Submodule Update Bot dc82666459 Update dependencies on 'dev' in qt/qt5compat
Change-Id: Ie98afbfe443a6f6f251c8ee1745a82d50b4068c0
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-01-23 19:56:23 +00:00
Qt Submodule Update Bot 377353c209 Update dependencies on 'dev' in qt/qt5compat
Change-Id: I4c95ea82e1fb8a89a2e3e69434dee391f3875eff
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-01-20 13:32:29 +00:00
Qt Submodule Update Bot a6f09a550e Update dependencies on 'dev' in qt/qt5compat
Change-Id: I6f903b52fb7a8aded60a033314469dac553ed9b1
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-01-14 18:18:06 +00:00
Jani Heikkinen 2775aae09d Bump version to 6.10.0
Change-Id: I3b50130dcb5044c8b6752e70d515428c1188cf46
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-01-03 14:15:19 +00:00
Qt Submodule Update Bot 97a093d893 Update dependencies on 'dev' in qt/qt5compat
Change-Id: I1ecd771ef52c803e9218fd0b7479c9b6c4aa6940
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-01-03 14:15:18 +00:00
Marc Mutz 6b5138b2a8 tst_qutf8: port from QScopedPointer to std::unique_ptr
In preparation of introducing QT_NO_SCOPED_POINTER.

Pick-to: 6.9 6.8
Task-number: QTBUG-132215
Change-Id: I2d85fde7ee153bd165709c3e11976531d23da343
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
2024-12-18 13:30:20 +01:00
Marc Mutz 34d8bc2c92 tst_QStringRef: protect QASV{QSR} test from all except GCC
QNX, too believes that QASV{QStringRef} is still ambiguous, even after
qtbase/a0e65398483729259cf58781949133c6055fdc7c and
qt5compat/5f94627eda523112116917ca08e6d0ab281bd5ea. Comment the test
out for all compilers except non-QNX GCC for now.

Task-number: QTBUG-122797
Pick-to: 6.9 6.8 6.5
Change-Id: I8563d48015babdbb79e107e7f5bfc063cc3dbc06
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2024-12-18 10:11:33 +00:00
Marc Mutz 50b8f5b533 QRegExp: replace QScopedPointer with std::optional
QRegExpEngine's size is already prety large, and QRegExpCharClass
isn't huge (2 QLists and an int + bool (the latter could probably be
packed into the former), so the space overhead isn't much,
pecentage-wise.

This is in preparation of adding QT_NO_SCOPED_POINTER.

Pick-to: 6.9 6.8
Task-number: QTBUG-132215
Change-Id: I3e71e631231baf6451b70a08ec6a288b369c6e49
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
2024-12-18 08:24:24 +01:00
Marc Mutz 9f8bfaa8cb tst_QStringRef: protect QASV{QSR} test from MSVC
MSVC believes that QASV{QStringRef} is still ambiguous, even after
qtbase/a0e65398483729259cf58781949133c6055fdc7c and
qt5compat/5f94627eda523112116917ca08e6d0ab281bd5ea. Comment the test
out for MSVCfor now.

Reopens: QTBUG-122797
Pick-to: 6.9 6.8 6.5
Change-Id: I1be144b15bc6245fb36a3bd9abac6685844fd7d5
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2024-12-17 11:46:44 +01:00
Marc Mutz 5f94627eda QStringRef: preserve null-ness when converting to QAnyStringView
Like for the conversion to QStringView, the conversion to
QAnyStringView was hitting the QASV{container} ctor, which doesn't
deal with QString(Ref)'s funny isNull()-but-data()-!=-nullptr
bug^Wpolicy, leading to null-ness being lost in the conversion.

At some point, it didn't even compile (cf. QTBUG-122797), though this
author could not reproduce the issue after fixing QTBUG-122798.

Fix by providing an implicit conversion operator to
QAnyStringView. This fixes the issue for conversion, but if a user
forces construction (e.g. using QAnyStringView{sr}), then the
QASV{container} ctor is still chosen, and still breaks
null-less. QStringView has the same problem, at the moment.

Fixing that requires changes in QtBase, so guard dependent code with
a macro that a fixed QtCore will set, incl. in QStringRef::operator
QASV() itself.

[ChangeLog][QtCore5Compat][QStringRef] Fixed missing conversion to
QAnyStringView.

Task-number: QTBUG-122797
Pick-to: 6.9 6.8 6.5
Change-Id: Ic848332e8f9e052d1359fa4532131e93e1b5c13c
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
2024-12-15 13:41:17 +00:00
Marc Mutz 63add2fdd8 QStringRef: fix lost null-ness when converting to QStringView
When QStringRef was moved out of QtCore, QStringRef (which needs the
same special isNull() handling that QString also needs, due to the
never-nullptr data() bug^Wpolicy) was dropped from QStringView's
if_qstring_like constraint, and the replacement QStringRef::operator
QStringView() didn't take the issue into account for all cases:

A QStringRef with a nullptr string() will create a null QStringView,
but a likewise isNull() QStringRef constructed over an isNull()
QString will create a non-null QStringView (over
QStringRef::data()::_empty).

Fix by checking for QStringRef::isNull() instead of just !m_string in
operator QStringView().

Amends 80ffb97660.

[ChangeLog][QtCore5Compat][QStringRef] Fixed a Qt 6 regression where
conversion to QStringView would no longer preserve nullness.

Task-number: QTBUG-122798
Pick-to: 6.9 6.8 6.5
Change-Id: Ie28e02c6553271a2cb6e8e6816de8c79b8c84b31
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2024-12-12 15:43:17 +01:00
Marc Mutz 6d80b76e9e tst_QStringRef: check that QStringRef->QStringView preserves nullness
It did, in Qt 5, but the test, if ever there was one, got lost when
QStringRef moved out of QtCore. Subsequently, the property was
broken.

Task-number: QTBUG-122798
Pick-to: 6.9 6.8 6.5
Change-Id: I517307c5f999457e353b9cf7200158d99fecd3ac
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2024-12-12 14:45:22 +01:00
Qt Submodule Update Bot 9b7642a357 Update dependencies on 'dev' in qt/qt5compat
Change-Id: I482ceaf3d3c5cd793d100fb6b4ea67bd06dfb5d6
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-12-08 17:02:19 +00:00
Qt Submodule Update Bot d3bb61302c Update dependencies on 'dev' in qt/qt5compat
Change-Id: I7921c73f88c95e5f56e4821371ea3289ecbae062
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-12-08 03:30:15 +00:00
Qt Submodule Update Bot 9e0fc26d8e Update dependencies on 'dev' in qt/qt5compat
Change-Id: I9c42c4f9b7799d9fa7da8d9194f389dff60b77c3
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-12-03 13:49:59 +00:00
Qt Submodule Update Bot 9acf03dc8a Update dependencies on 'dev' in qt/qt5compat
Change-Id: I4b87cc251bbb1ff0e4396dcfa3f1e233dfedd7bd
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-12-02 13:50:35 +00:00
Qt Submodule Update Bot 3d3a0d0698 Update dependencies on 'dev' in qt/qt5compat
Change-Id: Ib7429a23bff3ff8857c0ccb3f90a4f09968ff8e7
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-11-28 12:18:12 +00:00
Qt Submodule Update Bot 8af9ee1473 Update dependencies on 'dev' in qt/qt5compat
Change-Id: Ia71df31d22759ced646504c4eb36039443f78b22
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-11-26 15:29:13 +00:00
Qt Submodule Update Bot ced84ae96e Update dependencies on 'dev' in qt/qt5compat
Change-Id: I150712989204d862718449306a690a86d02ca053
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-11-25 22:12:36 +00:00
Qt Submodule Update Bot ea8f107612 Update dependencies on 'dev' in qt/qt5compat
Change-Id: I3bd7b786809e9dd5d39b0b3d7493ba1d6830856f
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-11-19 16:49:01 +00:00
Thiago Macieira 464c9761e2 tst_QTextCodec::utf32Codec: Split the Chakma digits into multiple rows
So it's easier to see what the error is.

Drive-by make it compile with Qt 5.

Pick-to: 6.8
Change-Id: I2fe31a7ad762bdd38ca3fffd9f903b5e64da4691
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2024-11-11 19:49:51 -07:00
Qt Submodule Update Bot 0b848169ac Update dependencies on 'dev' in qt/qt5compat
Change-Id: Iad0c2dc6a3a32dd400f49e41db259255c04b77f0
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-11-07 05:23:08 +00:00
Lucie Gérard c6c60f07c5 Add REUSE.toml files and missing licenses
REUSE.toml files are read by reuse to complement or override the
copyright and licensing information found in file.

The use of REUSE.toml files was introduced in REUSE version 3.1.0a1.
This reuse version is compatible with reuse specification
version 3.2 [1].
With this commit's files,
* The SPDX document generated by reuse spdx conforms to SPDX 2.3,
* The reuse lint command reports that the Qt project is reuse compliant.

In order to be reuse compliant all the licenses referenced in file
or within a REUSE.toml file must be present in the LICENSES
directory at the base of the module.
The missing licenses are added.

[1]: https://reuse.software/spec-3.2/

Task-number: QTBUG-124453
Task-number: QTBUG-125211
Pick-to: 6.8
Change-Id: I330938ead940b59054750a0e2bdb5c1936e146a5
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2024-11-06 12:49:07 +00:00
Qt Submodule Update Bot f91998afcc Update dependencies on 'dev' in qt/qt5compat
Change-Id: Ibb1e4f42c9cb5bc061052b18a0c926794473be63
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-11-06 11:58:30 +00:00
Topi Reinio 51aa49e30b Doc: Enable documentation testing in the CI
Include documentation testing steps in coin/module_config.yaml and
set the warning limit to zero.

Task-number: QTBUG-130559
Change-Id: I31797453b155504ba7498dc87fc1fb511d0e88d6
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
2024-11-04 11:25:48 +00:00
Qt Submodule Update Bot 8999e98183 Update dependencies on 'dev' in qt/qt5compat
Change-Id: I8fbdc67c46d46332240469c5660665e5748a1cd0
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-11-01 18:09:57 +00:00
Qt Submodule Update Bot 13ae97c90c Update dependencies on 'dev' in qt/qt5compat
Change-Id: I3c0bbd3d28cc195b969999831ce832f117c3e82b
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-10-30 20:14:51 +00:00
Marc Mutz 0cabe26f36 QBinaryJson: increase compiler coverage of toString()
Instead of #ifdef, use constexpr-if to ensure both endian paths are
seen by all compilers.

Pick-to: 6.8
Task-number: QTBUG-130392
Change-Id: Id40769becdc68a20aee7d0dbc8fe7ca497a97384
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
2024-10-24 12:12:05 +02:00
Marc Mutz d8d6de3472 QBinaryJson: don't rely on old QChar ctor conversions
Don't cast qle_ushort to QChar. The implicit conversion to int, which
this relies on, has been disabled as of
qtbase/9ef4c123c39c642357c9e8530d59f32f220a7824.

Cast it to char16_t instead, which is the future-proof way to do such
things.

Pick-to: 6.8
Fixes: QTBUG-130392
Change-Id: Ie2691d4dca072b0da8af86e8df0b97c661d88f14
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
2024-10-23 12:46:52 +02:00
Qt Submodule Update Bot 039aa8eda0 Update dependencies on 'dev' in qt/qt5compat
Change-Id: Ia11f880e98786e5bf7380777497cb20235d07800
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-10-23 10:46:46 +00:00
Qt Submodule Update Bot 08a3c5ed90 Update dependencies on 'dev' in qt/qt5compat
Change-Id: I44d8d3437f8d55af318dcfac7e0814f9a1ff1d99
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-09-27 06:59:42 +00:00
Qt Submodule Update Bot e54e6f1769 Update dependencies on 'dev' in qt/qt5compat
Change-Id: I6fe36d0b3e2d1b9e930669279637b3b923edaa47
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-09-25 04:24:22 +00:00
Qt Submodule Update Bot 92b0bc4f27 Update dependencies on 'dev' in qt/qt5compat
Change-Id: I7f4e8989f5136c98f7e54539c3eaf71c2098b8f0
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-09-23 18:09:22 +00:00
Qt Submodule Update Bot 0ac92d88ba Update dependencies on 'dev' in qt/qt5compat
Change-Id: Ib889b2729907e616614639118b68e938e1597f5d
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-09-20 16:57:49 +00:00
Thiago Macieira 9da7af533d tst_QTextCodec: add the missing "e" to Negative Length
Brian Kernigham said the one thing he'd do differently in Unix if he had
the chance to do it all over again was to add the "e" to creat().

Change-Id: Ifa343726f2065e2fb4bafffd1c7a96a741c664da
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2024-09-18 21:52:07 +02:00
Thiago Macieira 69a761a2cc QTextCodec: use DefaultConversion too
Complements dd0ddad631 and makes
QTextCodec::{to,from}Unicode also use the flag. Same reasoning as that
commit.

The changes to the tests are to make it compatible with what QTextCodec
did in Qt 5: the stateless fromUnicode() conversion did add BOMs, so we
match Qt 5's behavior here. That includes conversions of empty strings,
which QStringView() on a null pointer is.

In fact, I think commit 3695cd090b is
wrong in returning an empty QByteArray(). It went in because:
 a) the BOM behavior was different until the fix in this commit and in
    commit dd0ddad631
 b) the test was not backported to Qt 5, which would have identified the
    difference in behavior

I'm not fixing that difference in behavior because there's no Qt 5 code
to be compatible with, as Qt 5 crashed when attempting to convert null
pointers. The behavior of converting an empty QStringView() remains the
same (just no longer tested).

[ChangeLog][Qt5CoreCompat][QTextCodec] Fixed a bug that caused
QTextCodec not to write the Byte Order Mark for UTF codecs. QTextCodec
now has the same behavior as Qt 5.x.

Task-number: QTBUG-122795
Pick-to: 6.5 6.7 6.8
Change-Id: If05cb740b64f42eba21efffd17d13d0145f74945
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2024-09-18 11:55:13 -07:00
Qt Submodule Update Bot 1876af704c Update dependencies on 'dev' in qt/qt5compat
Change-Id: Iabbb93a39bb7f16f52f460ed300c26b1bcf6b04d
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-09-11 07:09:21 +00:00
Qt Submodule Update Bot 515dc00ea5 Update dependencies on 'dev' in qt/qt5compat
Change-Id: I3a59a2573ec983a061a2dc7bdf18863c5edb17cf
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-09-05 05:14:17 +00:00
Qt Submodule Update Bot ade7a7c032 Update dependencies on 'dev' in qt/qt5compat
Change-Id: I4550aa30381c7c58e28c3965a270418b8e19dcc7
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-08-31 07:01:08 +00:00
Qt Submodule Update Bot 3395dbef13 Update dependencies on 'dev' in qt/qt5compat
Change-Id: I7739a870914ef73256b9d30c30b5675195a54940
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-08-29 07:11:26 +00:00
Qt Submodule Update Bot e8b02b0e43 Update dependencies on 'dev' in qt/qt5compat
Change-Id: If4dbd7d5522a178b8a257e2143bb780afee521e6
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2024-08-28 01:39:13 +00:00