Skip to content

Commit 1340393

Browse files
bug 36803: import the current state of the qt 6.7 branch
1 parent cbacd70 commit 1340393

File tree

54 files changed

+454
-194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+454
-194
lines changed

src/qtbase/cmake/QtFrameworkHelpers.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ function(qt_copy_framework_headers target)
141141
add_custom_target(${target}_copy_fw_sync_headers
142142
COMMAND ${copy_fw_sync_headers_command}
143143
COMMAND ${copy_fw_sync_headers_marker_file_command}
144+
DEPENDS ${target}_sync_headers
144145
)
145146
endif()
146147

src/qtbase/src/corelib/Qt6AndroidMacros.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ function(_qt_internal_android_get_sdk_build_tools_revision out_var)
1010
LIST_DIRECTORIES true
1111
RELATIVE "${ANDROID_SDK_ROOT}/build-tools"
1212
"${ANDROID_SDK_ROOT}/build-tools/*")
13-
if (NOT android_build_tools)
13+
list(FILTER android_build_tools INCLUDE REGEX "[0-9]+\.[0-9]+(\.[0-9]+)?")
14+
if(NOT android_build_tools)
1415
message(FATAL_ERROR "Could not locate Android SDK build tools under \"${ANDROID_SDK_ROOT}/build-tools\"")
1516
endif()
1617
list(SORT android_build_tools)

src/qtbase/src/corelib/compat/removed_api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ QCborError QCborStreamReader::lastError()
700700
return std::as_const(*this).lastError();
701701
}
702702

703-
#include "qdatetime.h"
703+
#include "qdatetime.h" // also inlined API
704704

705705
QDateTime::QDateTime(QDate date, QTime time, const QTimeZone &timeZone)
706706
: QDateTime(date, time, timeZone, TransitionResolution::LegacyBehavior) {}

src/qtbase/src/corelib/kernel/qjniobject.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,9 +799,9 @@ class QT_TECH_PREVIEW_API JObject : public JObjectBase
799799
}
800800

801801
private:
802-
friend bool comparesEqual(const JObject &lhs, const JObject &rhs) noexcept
802+
friend bool comparesEqual(const JObject &lhs, const JObject &rhs)
803803
{ return lhs.m_object == rhs.m_object; }
804-
Q_DECLARE_EQUALITY_COMPARABLE_LITERAL_TYPE(JObject);
804+
Q_DECLARE_EQUALITY_COMPARABLE(JObject);
805805
};
806806
}
807807

src/qtbase/src/corelib/mimetypes/3rdparty/qt_attribution.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
"The Apache Tika MimeTypes list many known MIME types and how to match files (using globs and/or 'magic' rules for the file contents)",
1717
"Homepage":
1818
"https://github.com/apache/tika/tree/main/tika-core/src/main/resources/org/apache/tika/mime",
19-
"Version": "019041117149667bc4d18fabf222a0670d407959",
19+
"Version": "5ea8bbf1644a593ed22ee5c7608ba33aff949d5d",
2020
"DownloadLocation":
21-
"https://github.com/apache/tika/blob/019041117149667bc4d18fabf222a0670d407959/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml",
21+
"https://github.com/apache/tika/blob/5ea8bbf1644a593ed22ee5c7608ba33aff949d5d/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml",
2222
"License": "Apache License 2.0",
2323
"LicenseId": "Apache-2.0",
24-
"Copyright": "Copyright 2011 The Apache Software Foundation"
24+
"Copyright": "Copyright 2024 The Apache Software Foundation"
2525
}
2626
]

src/qtbase/src/corelib/mimetypes/3rdparty/tika-mimetypes.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4957,6 +4957,15 @@
49574957
<match value="-----BEGIN EC PARAMETERS-----" type="string" offset="0"/>
49584958
</magic>
49594959
</mime-type>
4960+
<mime-type type="application/x-java-keystore">
4961+
<comment>Java Keystore</comment>
4962+
<tika:link>https://en.wikipedia.org/wiki/Java_KeyStore</tika:link>
4963+
<magic priority="50">
4964+
<!-- magic byte: https://en.wikipedia.org/wiki/List_of_file_signatures -->
4965+
<match value="\xfe\xed\xfe\xed" type="string" offset="0:4"/>
4966+
</magic>
4967+
<glob pattern="*.jks" />
4968+
</mime-type>
49604969

49614970
<mime-type type="application/x-xfig">
49624971
<glob pattern="*.fig"/>
@@ -5534,6 +5543,7 @@
55345543
<mime-type type="audio/vnd.vmx.cvsd"/>
55355544
<mime-type type="audio/vorbis-config"/>
55365545
<mime-type type="audio/x-aac">
5546+
<alias type="audio/aac"/>
55375547
<glob pattern="*.aac"/>
55385548
<magic priority="30">
55395549
<!-- Without ID3 tags -->

src/qtbase/src/corelib/text/qchar.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,6 +1590,11 @@ char32_t QChar::toLower(char32_t ucs4) noexcept
15901590
15911591
Returns the uppercase equivalent if the character is lowercase or titlecase;
15921592
otherwise returns the character itself.
1593+
1594+
\note This function also returns the original character in the rare case of
1595+
the uppercase form of the character requiring two or more characters.
1596+
1597+
\sa QString::toUpper()
15931598
*/
15941599

15951600
/*!
@@ -1598,7 +1603,12 @@ char32_t QChar::toLower(char32_t ucs4) noexcept
15981603
by \a ucs4 if the character is lowercase or titlecase; otherwise returns
15991604
the character itself.
16001605
1606+
\note This function also returns the original character in the rare case of
1607+
the uppercase form of the character requiring two or more characters.
1608+
16011609
\note Before Qt 6, this function took a \c uint argument and returned \c uint.
1610+
1611+
\sa QString::toUpper()
16021612
*/
16031613
char32_t QChar::toUpper(char32_t ucs4) noexcept
16041614
{

src/qtbase/src/corelib/text/qlocale.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3379,6 +3379,9 @@ Qt::LayoutDirection QLocale::textDirection() const
33793379
Otherwise the conversion may be done in a platform-dependent manner,
33803380
with QString::toUpper() as a generic fallback.
33813381
3382+
\note In some cases the uppercase form of a string may be longer than the
3383+
original.
3384+
33823385
\sa QString::toUpper()
33833386
*/
33843387
QString QLocale::toUpper(const QString &str) const

src/qtbase/src/corelib/text/qstring.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7009,7 +7009,10 @@ QString QString::toCaseFolded_helper(QString &str)
70097009
\snippet qstring/main.cpp 81
70107010
70117011
The case conversion will always happen in the 'C' locale. For
7012-
locale-dependent case folding use QLocale::toUpper()
7012+
locale-dependent case folding use QLocale::toUpper().
7013+
7014+
\note In some cases the uppercase form of a string may be longer than the
7015+
original.
70137016
70147017
\sa toLower(), QLocale::toLower()
70157018
*/

src/qtbase/src/corelib/text/qstringtokenizer.cpp

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,18 @@ QT_BEGIN_NAMESPACE
2424
enumerations Qt::SplitBehavior and Qt::CaseSensitivity further
2525
control the output.
2626
27-
QStringTokenizer drives QStringView::tokenize(), but, at least with a
28-
recent compiler, you can use it directly, too:
27+
QStringTokenizer drives QStringView::tokenize(), but you can use it
28+
directly, too:
2929
3030
\code
3131
for (auto it : QStringTokenizer{string, separator})
3232
use(*it);
3333
\endcode
3434
3535
\note You should never, ever, name the template arguments of a
36-
QStringTokenizer explicitly. If you can use C++17 Class Template
37-
Argument Deduction (CTAD), you may write
36+
QStringTokenizer explicitly. You may write
3837
\c{QStringTokenizer{string, separator}} (without template
39-
arguments). If you can't use C++17 CTAD, you must use the
38+
arguments), or use the qTokenize() function, or the
4039
QStringView::split() or QLatin1StringView::split() member functions
4140
and store the return value only in \c{auto} variables:
4241
@@ -320,10 +319,6 @@ QT_BEGIN_NAMESPACE
320319
321320
Pass values from Qt::CaseSensitivity and Qt::SplitBehavior enumerators
322321
as \a flags to modify the behavior of the tokenizer.
323-
324-
You can use this function if your compiler doesn't, yet, support C++17 Class
325-
Template Argument Deduction (CTAD). We recommend direct use of QStringTokenizer
326-
with CTAD instead.
327322
*/
328323

329324
QT_END_NAMESPACE

0 commit comments

Comments
 (0)