<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qt/qtdeclarative.git/src/quick/items/qquickanimatedsprite.cpp, branch 6.8.2</title>
<subtitle>Qt Declarative (Quick 2)
</subtitle>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/'/>
<entry>
<title>doc: Fix string, real, point and size QML property documentation</title>
<updated>2024-12-05T15:13:55+00:00</updated>
<author>
<name>David Boddie</name>
<email>david.boddie@qt.io</email>
</author>
<published>2024-12-04T15:15:30+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=ef0462d938dc8bfdc3ef298684318ac622eea8c9'/>
<id>ef0462d938dc8bfdc3ef298684318ac622eea8c9</id>
<content type='text'>
Change-Id: I2de731368e403696ecf9d74a0ac68d1982d5ce24
Reviewed-by: Andreas Eliasson &lt;andreas.eliasson@qt.io&gt;
(cherry picked from commit 2d9c5c46d34b90510f3af31f2dd01ae15226c6e0)
Reviewed-by: Qt Cherry-pick Bot &lt;cherrypick_bot@qt-project.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I2de731368e403696ecf9d74a0ac68d1982d5ce24
Reviewed-by: Andreas Eliasson &lt;andreas.eliasson@qt.io&gt;
(cherry picked from commit 2d9c5c46d34b90510f3af31f2dd01ae15226c6e0)
Reviewed-by: Qt Cherry-pick Bot &lt;cherrypick_bot@qt-project.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Doc: Replace \instantiates with \nativetype</title>
<updated>2024-08-28T09:31: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=50032ea50b7a910071db616b922b3387ee50af2b'/>
<id>50032ea50b7a910071db616b922b3387ee50af2b</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.

Task-number: QTBUG-128216
Change-Id: I23d9f66d3f6db2e5f827d7868497a432bb9b0626
Reviewed-by: Venugopal Shivashankar &lt;Venugopal.Shivashankar@qt.io&gt;
(cherry picked from commit a464ff5bfa15201de64d05121dc192dbd4655890)
Reviewed-by: Qt Cherry-pick Bot &lt;cherrypick_bot@qt-project.org&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.

Task-number: QTBUG-128216
Change-Id: I23d9f66d3f6db2e5f827d7868497a432bb9b0626
Reviewed-by: Venugopal Shivashankar &lt;Venugopal.Shivashankar@qt.io&gt;
(cherry picked from commit a464ff5bfa15201de64d05121dc192dbd4655890)
Reviewed-by: Qt Cherry-pick Bot &lt;cherrypick_bot@qt-project.org&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>Fix glitches in big AnimatedSprite animations</title>
<updated>2021-12-09T22:16:37+00:00</updated>
<author>
<name>Eirik Aavitsland</name>
<email>eirik.aavitsland@qt.io</email>
</author>
<published>2021-12-03T17:11:38+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=55d3b35c59b173ac6d559b1b74c405af1aa793ff'/>
<id>55d3b35c59b173ac6d559b1b74c405af1aa793ff</id>
<content type='text'>
AnimatedSprite creates an atlas texture where the frames are placed
next to each other in a row - or multiple rows, if the frames are many
and/or big enough.

When interpolation is enabled, the code must calculate not only the
coordinates for the current (A) frame, but also for the next
one. However, the code for caluclating next (B) frame was broken. It
seemed to be half way designed to operate on normalized (qreal
0.0-1.0) coordinates, while the function in reality operates on
physical, integer texture coordinates. The result was that every time
the B frame should be in a different row than the A frame, the B
coordinates came out wrong. Hence, at that point the rendering would
interpolate the A frame towards a wrong or invalid frame, causing
visual glitches.

Fix the computations to use the actual texture (sheet) size instead of
normalized coordinates, and integers instead of qreals.

Fixes: QTBUG-94765
Pick-to: 6.2 5.15
Change-Id: I5a484c196abc3189f6dce0921cad3a25ada0e584
Reviewed-by: Laszlo Agocs &lt;laszlo.agocs@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
AnimatedSprite creates an atlas texture where the frames are placed
next to each other in a row - or multiple rows, if the frames are many
and/or big enough.

When interpolation is enabled, the code must calculate not only the
coordinates for the current (A) frame, but also for the next
one. However, the code for caluclating next (B) frame was broken. It
seemed to be half way designed to operate on normalized (qreal
0.0-1.0) coordinates, while the function in reality operates on
physical, integer texture coordinates. The result was that every time
the B frame should be in a different row than the A frame, the B
coordinates came out wrong. Hence, at that point the rendering would
interpolate the A frame towards a wrong or invalid frame, causing
visual glitches.

Fix the computations to use the actual texture (sheet) size instead of
normalized coordinates, and integers instead of qreals.

Fixes: QTBUG-94765
Pick-to: 6.2 5.15
Change-Id: I5a484c196abc3189f6dce0921cad3a25ada0e584
Reviewed-by: Laszlo Agocs &lt;laszlo.agocs@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Port from devicePixelRatioF() to devicePixelRatio()</title>
<updated>2020-09-28T11:01:43+00:00</updated>
<author>
<name>Morten Johan Sørvig</name>
<email>morten.sorvig@qt.io</email>
</author>
<published>2020-08-06T19:40:01+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=9e2f4e112776149be550dbea6003a192cd931538'/>
<id>9e2f4e112776149be550dbea6003a192cd931538</id>
<content type='text'>
This ports all of QtDeclarative.

Change-Id: Ie6eb4d96b4d49fbed1e8be514d03e331549cd712
Reviewed-by: Tor Arne Vestbø &lt;tor.arne.vestbo@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This ports all of QtDeclarative.

Change-Id: Ie6eb4d96b4d49fbed1e8be514d03e331549cd712
Reviewed-by: Tor Arne Vestbø &lt;tor.arne.vestbo@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Resume AnimatedSprite playback when visibility changes</title>
<updated>2020-04-24T08:24:58+00:00</updated>
<author>
<name>Laszlo Agocs</name>
<email>laszlo.agocs@qt.io</email>
</author>
<published>2020-04-23T15:05:26+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=af521a8df6caec41f626a4b3319601c20adff711'/>
<id>af521a8df6caec41f626a4b3319601c20adff711</id>
<content type='text'>
Amends f5e2783 that was made in 5.6 to avoid updating the AnimatedSprite
when not visible. The problem is, if the sprite was running, the
expectation is that becoming visible again resumes the playback.

It can be argued what the correct behavior is: do we expect the playback
to resume from the point when the sprite went invisible, or should it
take the time spent as invisible into account? This patch only corrects
the immediate problem and provides the former, i.e. playback will resume
from the point it had when becoming invisible.

The AnimatedSprite scene in the imageelements example is improved to be
able to test this. It can also exercise all the start/pause/resume/advance
functions now.

Fixes: QTBUG-63942
Pick-to: 5.15
Change-Id: Ieb6d046168a2132659848a36ee0b694c580159b1
Reviewed-by: Andy Nichols &lt;andy.nichols@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Amends f5e2783 that was made in 5.6 to avoid updating the AnimatedSprite
when not visible. The problem is, if the sprite was running, the
expectation is that becoming visible again resumes the playback.

It can be argued what the correct behavior is: do we expect the playback
to resume from the point when the sprite went invisible, or should it
take the time spent as invisible into account? This patch only corrects
the immediate problem and provides the former, i.e. playback will resume
from the point it had when becoming invisible.

The AnimatedSprite scene in the imageelements example is improved to be
able to test this. It can also exercise all the start/pause/resume/advance
functions now.

Fixes: QTBUG-63942
Pick-to: 5.15
Change-Id: Ieb6d046168a2132659848a36ee0b694c580159b1
Reviewed-by: Andy Nichols &lt;andy.nichols@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace QFlagPointer with QTaggedPointer</title>
<updated>2020-04-03T10:35:23+00:00</updated>
<author>
<name>Simon Hausmann</name>
<email>simon.hausmann@qt.io</email>
</author>
<published>2020-03-04T13:54:54+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=448b2a5d838d082c66ab649cc7b71c31761bf409'/>
<id>448b2a5d838d082c66ab649cc7b71c31761bf409</id>
<content type='text'>
The latter has the advantage of allowing the use of a real type for the
tag, instead of the generic flag/flag2 boolean accessors.

Change-Id: Icc9e854ce4af3eb5808a4bed45aa22f377e223da
Reviewed-by: Fabian Kosmale &lt;fabian.kosmale@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The latter has the advantage of allowing the use of a real type for the
tag, instead of the generic flag/flag2 boolean accessors.

Change-Id: Icc9e854ce4af3eb5808a4bed45aa22f377e223da
Reviewed-by: Fabian Kosmale &lt;fabian.kosmale@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow AnimatedSprite to finish on the last frame</title>
<updated>2019-11-13T18:03:53+00:00</updated>
<author>
<name>Michael Brasser</name>
<email>mbrasser@ford.com</email>
</author>
<published>2019-10-29T14:45:54+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=2c6966c775fec86e3c4265cd3a5b204e7e5e183a'/>
<id>2c6966c775fec86e3c4265cd3a5b204e7e5e183a</id>
<content type='text'>
[ChangeLog][AnimatedSprite] Add finishBehavior to allow a sprite to
finish on the last frame.

Task-number: QTBUG-59090
Change-Id: Id45e879cdc4905f43e2ac3cb2529181390d47aab
Reviewed-by: Mitch Curtis &lt;mitch.curtis@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[ChangeLog][AnimatedSprite] Add finishBehavior to allow a sprite to
finish on the last frame.

Task-number: QTBUG-59090
Change-Id: Id45e879cdc4905f43e2ac3cb2529181390d47aab
Reviewed-by: Mitch Curtis &lt;mitch.curtis@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Cleanup and document AnimatedSprite::start()/stop()</title>
<updated>2019-11-01T15:26:42+00:00</updated>
<author>
<name>Michael Brasser</name>
<email>mbrasser@ford.com</email>
</author>
<published>2019-10-30T19:13:57+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=bd62eff7ca551dc76cf1ec2e7eef14664f6228a5'/>
<id>bd62eff7ca551dc76cf1ec2e7eef14664f6228a5</id>
<content type='text'>
Change-Id: I3acbff54ca7b2131b84ab739f99ac982ebda65ea
Reviewed-by: Mitch Curtis &lt;mitch.curtis@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I3acbff54ca7b2131b84ab739f99ac982ebda65ea
Reviewed-by: Mitch Curtis &lt;mitch.curtis@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Small performance improvements suggested by clang-tidy</title>
<updated>2019-10-07T07:09:49+00:00</updated>
<author>
<name>Albert Astals Cid</name>
<email>albert.astals.cid@kdab.com</email>
</author>
<published>2019-10-04T12:13:36+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=ce94b847c87e2606c5f189d2ad3715c1d025b9cf'/>
<id>ce94b847c87e2606c5f189d2ad3715c1d025b9cf</id>
<content type='text'>
mostly add const &amp;, a few std::move and in particular case, remove const
so the std::move being done over the variable actually has effect

Change-Id: Id611cd31bc012f219d7a17d4626b1c2a5fbddd66
Reviewed-by: Fabian Kosmale &lt;fabian.kosmale@qt.io&gt;
Reviewed-by: Ulf Hermann &lt;ulf.hermann@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
mostly add const &amp;, a few std::move and in particular case, remove const
so the std::move being done over the variable actually has effect

Change-Id: Id611cd31bc012f219d7a17d4626b1c2a5fbddd66
Reviewed-by: Fabian Kosmale &lt;fabian.kosmale@qt.io&gt;
Reviewed-by: Ulf Hermann &lt;ulf.hermann@qt.io&gt;
</pre>
</div>
</content>
</entry>
</feed>
