<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qt/qtdeclarative.git/src/particles/qquickparticleaffector.cpp, branch dev</title>
<subtitle>Qt Declarative (Quick 2)
</subtitle>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/'/>
<entry>
<title>QuickParticles: include qtconfigmacros.h before undef'ing QT_NO_FOREACH</title>
<updated>2026-04-19T21:39:23+00:00</updated>
<author>
<name>Marc Mutz</name>
<email>marc.mutz@qt.io</email>
</author>
<published>2026-04-15T16:16:55+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=3a1eee54e2cbf733fb0bdb22e557b505146c034c'/>
<id>3a1eee54e2cbf733fb0bdb22e557b505146c034c</id>
<content type='text'>
This ensures that we can undef it even if it was set by
QT_ENABLE_STRICT_MODE_UP_TO.

Amends 2ed0abd5533750343a382f5b4ab5dcab6d52eff2 (6.7).

Pick-to: 6.11 6.8
Task-number: QTBUG-115808
Task-number: QTBUG-145284
Change-Id: I8ab6a9dbcb1c0bb94097333864b4851413e3f39d
Reviewed-by: Ahmad Samir &lt;a.samirh78@gmail.com&gt;
Reviewed-by: Shawn Rutledge &lt;shawn.rutledge@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This ensures that we can undef it even if it was set by
QT_ENABLE_STRICT_MODE_UP_TO.

Amends 2ed0abd5533750343a382f5b4ab5dcab6d52eff2 (6.7).

Pick-to: 6.11 6.8
Task-number: QTBUG-115808
Task-number: QTBUG-145284
Change-Id: I8ab6a9dbcb1c0bb94097333864b4851413e3f39d
Reviewed-by: Ahmad Samir &lt;a.samirh78@gmail.com&gt;
Reviewed-by: Shawn Rutledge &lt;shawn.rutledge@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Port away from QPair</title>
<updated>2025-04-12T05:39:59+00:00</updated>
<author>
<name>Zhao Yuhang</name>
<email>2546789017@qq.com</email>
</author>
<published>2025-04-10T08:20:35+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=60297d4d1e17705c128d11a1ef6f200e59ba4708'/>
<id>60297d4d1e17705c128d11a1ef6f200e59ba4708</id>
<content type='text'>
QPair is just an alias of std::pair anyway.

Task-number: QTBUG-115841
Change-Id: I26fc90adcc775aac9955ad57304af914dc4ed48f
Reviewed-by: Ulf Hermann &lt;ulf.hermann@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
QPair is just an alias of std::pair anyway.

Task-number: QTBUG-115841
Change-Id: I26fc90adcc775aac9955ad57304af914dc4ed48f
Reviewed-by: Ulf Hermann &lt;ulf.hermann@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Docs: correct the documentation for ParticleAffector and its derivatives</title>
<updated>2025-02-28T11:49:22+00:00</updated>
<author>
<name>Alexei Cazacov</name>
<email>alexei.cazacov@qt.io</email>
</author>
<published>2025-02-11T11:04:44+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=a28b3303b241e23f5bdcbd103868ac9e25394297'/>
<id>a28b3303b241e23f5bdcbd103868ac9e25394297</id>
<content type='text'>
This commit fixes the issue when the ParticleAffector derivatives were
marked as Affector derivatives which was wrong and led to confusion.

Fixes: QTBUG-130764
Pick-to: 6.9 6.8
Change-Id: Id4fb83db32d8b674b705fa1065a6bb1c3f44ad3b
Reviewed-by: Ulf Hermann &lt;ulf.hermann@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit fixes the issue when the ParticleAffector derivatives were
marked as Affector derivatives which was wrong and led to confusion.

Fixes: QTBUG-130764
Pick-to: 6.9 6.8
Change-Id: Id4fb83db32d8b674b705fa1065a6bb1c3f44ad3b
Reviewed-by: Ulf Hermann &lt;ulf.hermann@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Doc: Replace \instantiates with \nativetype</title>
<updated>2024-08-20T10:48:23+00:00</updated>
<author>
<name>Paul Wicking</name>
<email>paul.wicking@qt.io</email>
</author>
<published>2024-08-20T07:36:38+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=a464ff5bfa15201de64d05121dc192dbd4655890'/>
<id>a464ff5bfa15201de64d05121dc192dbd4655890</id>
<content type='text'>
Since the implementation of the `\nativetype`-command in QDoc,
the `\instantiates`-command is deprecated. Replace the use of the
deprecated command in favor of its replacement.

Pick-to: 6.8
Task-number: QTBUG-128216
Change-Id: I23d9f66d3f6db2e5f827d7868497a432bb9b0626
Reviewed-by: Venugopal Shivashankar &lt;Venugopal.Shivashankar@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since the implementation of the `\nativetype`-command in QDoc,
the `\instantiates`-command is deprecated. Replace the use of the
deprecated command in favor of its replacement.

Pick-to: 6.8
Task-number: QTBUG-128216
Change-Id: I23d9f66d3f6db2e5f827d7868497a432bb9b0626
Reviewed-by: Venugopal Shivashankar &lt;Venugopal.Shivashankar@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Mark QtQuickParticles as free of Q_FOREACH, except where it isn't</title>
<updated>2023-08-17T16:04:22+00:00</updated>
<author>
<name>Marc Mutz</name>
<email>marc.mutz@qt.io</email>
</author>
<published>2023-08-06T15:03:37+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=2ed0abd5533750343a382f5b4ab5dcab6d52eff2'/>
<id>2ed0abd5533750343a382f5b4ab5dcab6d52eff2</id>
<content type='text'>
The density of Q_FOREACH uses is high here, too high for this author,
unfamiliar with this code, to tackle in a short amount of time. But
they're concentrated in just a few TUs, so pick a different strategy:

Mark the whole library with QT_NO_FOREACH, to prevent new uses from
creeping in, and whitelist the affected TUs by #undef'ing
QT_NO_FOREACH locally, at the top of each file. For TUs that are part
of a larger executable, this requires these files to be compiled
separately, so add them to NO_PCH_SOURCES (which implies
NO_UNITY_BUILD_SOURCES, too). Created QTBUG-115808 to keep track of
this, and other such follow-up changes in this module.

Task-number: QTBUG-115808
Change-Id: Ib8c285ed2030940e599b3dba675a352096fe9fad
Reviewed-by: Ulf Hermann &lt;ulf.hermann@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The density of Q_FOREACH uses is high here, too high for this author,
unfamiliar with this code, to tackle in a short amount of time. But
they're concentrated in just a few TUs, so pick a different strategy:

Mark the whole library with QT_NO_FOREACH, to prevent new uses from
creeping in, and whitelist the affected TUs by #undef'ing
QT_NO_FOREACH locally, at the top of each file. For TUs that are part
of a larger executable, this requires these files to be compiled
separately, so add them to NO_PCH_SOURCES (which implies
NO_UNITY_BUILD_SOURCES, too). Created QTBUG-115808 to keep track of
this, and other such follow-up changes in this module.

Task-number: QTBUG-115808
Change-Id: Ib8c285ed2030940e599b3dba675a352096fe9fad
Reviewed-by: Ulf Hermann &lt;ulf.hermann@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Port from qAsConst() to std::as_const()</title>
<updated>2022-10-07T21:38:56+00:00</updated>
<author>
<name>Marc Mutz</name>
<email>marc.mutz@qt.io</email>
</author>
<published>2022-10-06T09:30:50+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=c2d490a2385ea6f389340a296acaac0fa198c8b9'/>
<id>c2d490a2385ea6f389340a296acaac0fa198c8b9</id>
<content type='text'>
We've been requiring C++17 since Qt 6.0, and our qAsConst use finally
starts to bother us (QTBUG-99313), so time to port away from it
now.

Since qAsConst has exactly the same semantics as std::as_const (down
to rvalue treatment, constexpr'ness and noexcept'ness), there's really
nothing more to it than a global search-and-replace.

Task-number: QTBUG-99313
Change-Id: I601bf70f020f511019ed28731ba53b14b765dbf0
Reviewed-by: Shawn Rutledge &lt;shawn.rutledge@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We've been requiring C++17 since Qt 6.0, and our qAsConst use finally
starts to bother us (QTBUG-99313), so time to port away from it
now.

Since qAsConst has exactly the same semantics as std::as_const (down
to rvalue treatment, constexpr'ness and noexcept'ness), there's really
nothing more to it than a global search-and-replace.

Task-number: QTBUG-99313
Change-Id: I601bf70f020f511019ed28731ba53b14b765dbf0
Reviewed-by: Shawn Rutledge &lt;shawn.rutledge@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Use SPDX license identifiers</title>
<updated>2022-06-11T06:05:15+00:00</updated>
<author>
<name>Lucie Gérard</name>
<email>lucie.gerard@qt.io</email>
</author>
<published>2022-05-13T13:12:05+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=0dc4fd240a2897c5c443a0ef6d84c416843e4938'/>
<id>0dc4fd240a2897c5c443a0ef6d84c416843e4938</id>
<content type='text'>
Replace the current license disclaimer in files by
a SPDX-License-Identifier.
Files that have to be modified by hand are modified.
License files are organized under LICENSES directory.

Pick-to: 6.4
Task-number: QTBUG-67283
Change-Id: I63563bbeb6f60f89d2c99660400dca7fab78a294
Reviewed-by: Shawn Rutledge &lt;shawn.rutledge@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace the current license disclaimer in files by
a SPDX-License-Identifier.
Files that have to be modified by hand are modified.
License files are organized under LICENSES directory.

Pick-to: 6.4
Task-number: QTBUG-67283
Change-Id: I63563bbeb6f60f89d2c99660400dca7fab78a294
Reviewed-by: Shawn Rutledge &lt;shawn.rutledge@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Doc: Fix qdoc warnings</title>
<updated>2021-11-14T22:47:54+00:00</updated>
<author>
<name>Venugopal Shivashankar</name>
<email>Venugopal.Shivashankar@qt.io</email>
</author>
<published>2021-11-09T11:24:43+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=dc569a618981fb6791e08c39295e1e937b381224'/>
<id>dc569a618981fb6791e08c39295e1e937b381224</id>
<content type='text'>
- Comment out \instantiates entries that refer to private C++ classes
- Fix clang-format and regexp warnings

Change-Id: I7228538715b9d34ab39e7c0f71155be7a277116a
Reviewed-by: Topi Reiniö &lt;topi.reinio@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Comment out \instantiates entries that refer to private C++ classes
- Fix clang-format and regexp warnings

Change-Id: I7228538715b9d34ab39e7c0f71155be7a277116a
Reviewed-by: Topi Reiniö &lt;topi.reinio@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>QQuickParticleAffector: Fix warnings about copying non-shared containers</title>
<updated>2020-11-23T19:38:05+00:00</updated>
<author>
<name>Friedemann Kleint</name>
<email>Friedemann.Kleint@qt.io</email>
</author>
<published>2020-11-23T15:33:45+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=938986fb464601ad3104ee86d03f2ef562e24315'/>
<id>938986fb464601ad3104ee86d03f2ef562e24315</id>
<content type='text'>
Use range-based for, fixing:
'QtPrivate::warnIfContainerIsNotShared': Do not use foreach/Q_FOREACH with containers which are not implicitly shared. Prefer using a range-based for loop with these containers: `for (const auto &amp;it : container)`, keeping in mind that range-based for doesn't copy the container as Q_FOREACH does
            T=QVarLengthArray&lt;QQuickParticleGroupData *,32&gt; &amp;
'QtPrivate::warnIfContainerIsNotShared': Do not use foreach/Q_FOREACH with containers which are not implicitly shared. Prefer using a range-based for loop with these containers: `for (const auto &amp;it : container)`, keeping in mind that range-based for doesn't copy the container as Q_FOREACH does
            T=QQuickParticleVarLengthArray&lt;QQuickParticlePainter *,4&gt; &amp;

Pick-to: 6.0
Change-Id: I88d7405abd89d2fa47549623997cbc02a9bd1145
Reviewed-by: Kaj Grönholm &lt;kaj.gronholm@qt.io&gt;
Reviewed-by: Fabian Kosmale &lt;fabian.kosmale@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use range-based for, fixing:
'QtPrivate::warnIfContainerIsNotShared': Do not use foreach/Q_FOREACH with containers which are not implicitly shared. Prefer using a range-based for loop with these containers: `for (const auto &amp;it : container)`, keeping in mind that range-based for doesn't copy the container as Q_FOREACH does
            T=QVarLengthArray&lt;QQuickParticleGroupData *,32&gt; &amp;
'QtPrivate::warnIfContainerIsNotShared': Do not use foreach/Q_FOREACH with containers which are not implicitly shared. Prefer using a range-based for loop with these containers: `for (const auto &amp;it : container)`, keeping in mind that range-based for doesn't copy the container as Q_FOREACH does
            T=QQuickParticleVarLengthArray&lt;QQuickParticlePainter *,4&gt; &amp;

Pick-to: 6.0
Change-Id: I88d7405abd89d2fa47549623997cbc02a9bd1145
Reviewed-by: Kaj Grönholm &lt;kaj.gronholm@qt.io&gt;
Reviewed-by: Fabian Kosmale &lt;fabian.kosmale@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow removing attractor particlesystem at runtime</title>
<updated>2020-11-12T12:22:53+00:00</updated>
<author>
<name>Kaj Grönholm</name>
<email>kaj.gronholm@qt.io</email>
</author>
<published>2020-11-12T09:54:26+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=9d19841b053d16157858cf1c48a0143933af2626'/>
<id>9d19841b053d16157858cf1c48a0143933af2626</id>
<content type='text'>
Don't crash and make it work as expected.

Task-number: QTBUG-37491
Change-Id: I0b94fdfa0a79dd43b762b03b24e3415762eecd95
Reviewed-by: Tomi Korpipää &lt;tomi.korpipaa@qt.io&gt;
Reviewed-by: Laszlo Agocs &lt;laszlo.agocs@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't crash and make it work as expected.

Task-number: QTBUG-37491
Change-Id: I0b94fdfa0a79dd43b762b03b24e3415762eecd95
Reviewed-by: Tomi Korpipää &lt;tomi.korpipaa@qt.io&gt;
Reviewed-by: Laszlo Agocs &lt;laszlo.agocs@qt.io&gt;
</pre>
</div>
</content>
</entry>
</feed>
