<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qt/qtdeclarative.git/src/quick/items/qquickitemview.cpp, branch 6.1</title>
<subtitle>Qt Declarative (Quick 2)
</subtitle>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/'/>
<entry>
<title>Fix warning and assert when removing items from groups</title>
<updated>2021-01-11T14:22:00+00:00</updated>
<author>
<name>Maximilian Goldstein</name>
<email>max.goldstein@qt.io</email>
</author>
<published>2021-01-08T10:58:55+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=8a3ede5ba1daf2d9314d71db972175b2791456c0'/>
<id>8a3ede5ba1daf2d9314d71db972175b2791456c0</id>
<content type='text'>
When removing items from groups actively shown by a model filter a warning
and assert was triggered in the past. This change fixes this behavior.

Fixes: QTBUG-86017
Change-Id: I49b7498a3d03141b654e453a3c35a43fc7ba804a
Reviewed-by: Ulf Hermann &lt;ulf.hermann@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When removing items from groups actively shown by a model filter a warning
and assert was triggered in the past. This change fixes this behavior.

Fixes: QTBUG-86017
Change-Id: I49b7498a3d03141b654e453a3c35a43fc7ba804a
Reviewed-by: Ulf Hermann &lt;ulf.hermann@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Cull removed items from QQuickItemView</title>
<updated>2020-06-15T15:52:16+00:00</updated>
<author>
<name>Fabian Kosmale</name>
<email>fabian.kosmale@qt.io</email>
</author>
<published>2020-06-15T13:51:01+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=ab03621516630991c7cc0fea3be79879efed23a8'/>
<id>ab03621516630991c7cc0fea3be79879efed23a8</id>
<content type='text'>
Amends a20132c326f6d2c5fec848efb98dd86afb320e2a, which fixed a crash,
but also prevented the item from being culled. This is fixed by
narrowing the scope of the condition to affect only the caching related
part.

Fixes: QTBUG-84604
Pick-to: 5.15
Change-Id: I9b8a1a148d6538a18280475d89b87a4049ff3465
Reviewed-by: Shawn Rutledge &lt;shawn.rutledge@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Amends a20132c326f6d2c5fec848efb98dd86afb320e2a, which fixed a crash,
but also prevented the item from being culled. This is fixed by
narrowing the scope of the condition to affect only the caching related
part.

Fixes: QTBUG-84604
Pick-to: 5.15
Change-Id: I9b8a1a148d6538a18280475d89b87a4049ff3465
Reviewed-by: Shawn Rutledge &lt;shawn.rutledge@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>QQuickItem: rename geometryChanged to geometryChange</title>
<updated>2020-04-23T10:13:20+00:00</updated>
<author>
<name>Mitch Curtis</name>
<email>mitch.curtis@qt.io</email>
</author>
<published>2020-03-23T15:07:09+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=9fd4160307ab54b89d0145ebde0a91d293fa95a5'/>
<id>9fd4160307ab54b89d0145ebde0a91d293fa95a5</id>
<content type='text'>
This brings it in line with the existing convention in this and other
modules, where virtual handlers are named "nounChange"; e.g.
itemChange. Signals are named "nounChanged".

This also allows adding a geometryChanged signal, which would enable
users to listen to one signal for all changes to x/y/width/height.

[ChangeLog][QQuickItem] Renamed geometryChanged to geometryChange
in order to follow existing naming conventions and have consistency
with existing API, such as itemChange.

Task-number: QTBUG-82994
Change-Id: I0547358c796a0047982ccfbf2c38bab952e7a634
Reviewed-by: Laszlo Agocs &lt;laszlo.agocs@qt.io&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 brings it in line with the existing convention in this and other
modules, where virtual handlers are named "nounChange"; e.g.
itemChange. Signals are named "nounChanged".

This also allows adding a geometryChanged signal, which would enable
users to listen to one signal for all changes to x/y/width/height.

[ChangeLog][QQuickItem] Renamed geometryChanged to geometryChange
in order to follow existing naming conventions and have consistency
with existing API, such as itemChange.

Task-number: QTBUG-82994
Change-Id: I0547358c796a0047982ccfbf2c38bab952e7a634
Reviewed-by: Laszlo Agocs &lt;laszlo.agocs@qt.io&gt;
Reviewed-by: Shawn Rutledge &lt;shawn.rutledge@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "QQuickItemView: do not set parent to nullptr upon destruction"</title>
<updated>2020-02-21T08:01:01+00:00</updated>
<author>
<name>Ulf Hermann</name>
<email>ulf.hermann@qt.io</email>
</author>
<published>2020-02-20T15:00:05+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=b3ff342d327dc00d99281dca4fbfe6c4300aa6c6'/>
<id>b3ff342d327dc00d99281dca4fbfe6c4300aa6c6</id>
<content type='text'>
This reverts commit 5445fcac36d7122d533a2bdf0fcfe6206b7f3ff4.

The original commit avoids a warning generated for a dubious use case
and breaks controls2 in a non-trivial way as a side effect. We should
rather live with the warning.

Task-number: QTBUG-82368
Change-Id: I6197bb63036cb25ec3e88f549667519b8f3ff13a
Reviewed-by: Mitch Curtis &lt;mitch.curtis@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>
This reverts commit 5445fcac36d7122d533a2bdf0fcfe6206b7f3ff4.

The original commit avoids a warning generated for a dubious use case
and breaks controls2 in a non-trivial way as a side effect. We should
rather live with the warning.

Task-number: QTBUG-82368
Change-Id: I6197bb63036cb25ec3e88f549667519b8f3ff13a
Reviewed-by: Mitch Curtis &lt;mitch.curtis@qt.io&gt;
Reviewed-by: Fabian Kosmale &lt;fabian.kosmale@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>QQuickItemView: do not set parent to nullptr upon destruction</title>
<updated>2020-02-14T08:18:47+00:00</updated>
<author>
<name>Richard Moe Gustavsen</name>
<email>richard.gustavsen@qt.io</email>
</author>
<published>2020-02-12T08:21:50+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=5445fcac36d7122d533a2bdf0fcfe6206b7f3ff4'/>
<id>5445fcac36d7122d533a2bdf0fcfe6206b7f3ff4</id>
<content type='text'>
Setting a delegate item's parent to nullptr will make any
bindings to the parent inside the item invalid, and
warnings will as such be printed (first seen after
8c72e634b3b0eacbfdee883bfc34994d3c19ed77).

I assume the reason for setting the (visual) parent to nullptr
is to immediately hide it. So to avoid trigger any bindings, we
instead just cull if from the scene graph.

It's also dubious why a delegate should have bindings to
its parent in the first place, since what ends up being the
parent is an implementation detail, and probably not be the item
the user expects it to be.

Fixes: QTBUG-81976
Change-Id: I7bd8ab91461504b6e79d4aa2ab832be087245c3e
Reviewed-by: Mitch Curtis &lt;mitch.curtis@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Setting a delegate item's parent to nullptr will make any
bindings to the parent inside the item invalid, and
warnings will as such be printed (first seen after
8c72e634b3b0eacbfdee883bfc34994d3c19ed77).

I assume the reason for setting the (visual) parent to nullptr
is to immediately hide it. So to avoid trigger any bindings, we
instead just cull if from the scene graph.

It's also dubious why a delegate should have bindings to
its parent in the first place, since what ends up being the
parent is an implementation detail, and probably not be the item
the user expects it to be.

Fixes: QTBUG-81976
Change-Id: I7bd8ab91461504b6e79d4aa2ab832be087245c3e
Reviewed-by: Mitch Curtis &lt;mitch.curtis@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>QQuickItemView: only connect recycle signals to delegate model</title>
<updated>2020-01-29T14:07:25+00:00</updated>
<author>
<name>Richard Moe Gustavsen</name>
<email>richard.gustavsen@qt.io</email>
</author>
<published>2020-01-29T09:27:04+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=4ad7a4d3dabea0c46872be2d6262a9c00e4e5079'/>
<id>4ad7a4d3dabea0c46872be2d6262a9c00e4e5079</id>
<content type='text'>
Only QQmlDelegateModel has reused/pooled signals. So only
connect/disconnect to those signals when the assigned model
is of that type.

Fixes: QTBUG-81257
Change-Id: I52a39a98ac0f557ff57307572581dc6c7a05af92
Reviewed-by: Mitch Curtis &lt;mitch.curtis@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only QQmlDelegateModel has reused/pooled signals. So only
connect/disconnect to those signals when the assigned model
is of that type.

Fixes: QTBUG-81257
Change-Id: I52a39a98ac0f557ff57307572581dc6c7a05af92
Reviewed-by: Mitch Curtis &lt;mitch.curtis@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'origin/5.14' into 5.15</title>
<updated>2020-01-20T08:37:57+00:00</updated>
<author>
<name>Qt Forward Merge Bot</name>
<email>qt_forward_merge_bot@qt-project.org</email>
</author>
<published>2020-01-20T00:00:12+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=67ac9dead884c7558896bdd97e4d3152100dc7ec'/>
<id>67ac9dead884c7558896bdd97e4d3152100dc7ec</id>
<content type='text'>
 Conflicts:
	src/quick/items/qquickitemview.cpp

Change-Id: Ib9faebdbef5eebb80f4e6aeb5b15b5df7494b157
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 Conflicts:
	src/quick/items/qquickitemview.cpp

Change-Id: Ib9faebdbef5eebb80f4e6aeb5b15b5df7494b157
</pre>
</div>
</content>
</entry>
<entry>
<title>QQuickItemView: fix crash when changing model</title>
<updated>2020-01-15T02:25:21+00:00</updated>
<author>
<name>Wang Chuan</name>
<email>ouchuanm@outlook.com</email>
</author>
<published>2019-11-30T12:03:19+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=a20132c326f6d2c5fec848efb98dd86afb320e2a'/>
<id>a20132c326f6d2c5fec848efb98dd86afb320e2a</id>
<content type='text'>
When visible items become invisible, ListView will try to cache
them and redisplay these items if necessary. However, we can't
cache items when changing to a new model, since the old one will
be deleted later

Fix by adding a flag to let ListView know we are clearing items
and prevent cache unnecessary items

Fixes: QTBUG-80203
Change-Id: I50dcd3f0586c93496b143bdad0e59751360501a8
Reviewed-by: Richard Moe Gustavsen &lt;richard.gustavsen@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When visible items become invisible, ListView will try to cache
them and redisplay these items if necessary. However, we can't
cache items when changing to a new model, since the old one will
be deleted later

Fix by adding a flag to let ListView know we are clearing items
and prevent cache unnecessary items

Fixes: QTBUG-80203
Change-Id: I50dcd3f0586c93496b143bdad0e59751360501a8
Reviewed-by: Richard Moe Gustavsen &lt;richard.gustavsen@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'origin/5.14' into 5.15</title>
<updated>2020-01-14T08:33:22+00:00</updated>
<author>
<name>Qt Forward Merge Bot</name>
<email>qt_forward_merge_bot@qt-project.org</email>
</author>
<published>2020-01-14T00:00:50+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=51311db1b33cc7aabaf5027fa0c82a5921aba888'/>
<id>51311db1b33cc7aabaf5027fa0c82a5921aba888</id>
<content type='text'>
 Conflicts:
	src/quick/items/qquickitemsmodule.cpp
	src/quick/items/qquickitemview.cpp

Change-Id: I02191959a5023c4320f5487a7fb3a71f8711195f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 Conflicts:
	src/quick/items/qquickitemsmodule.cpp
	src/quick/items/qquickitemview.cpp

Change-Id: I02191959a5023c4320f5487a7fb3a71f8711195f
</pre>
</div>
</content>
</entry>
<entry>
<title>QQuickItemView: Fix iteration/deletion logic</title>
<updated>2020-01-10T12:03:04+00:00</updated>
<author>
<name>Ulf Hermann</name>
<email>ulf.hermann@qt.io</email>
</author>
<published>2020-01-09T13:31:27+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=490f787a1ebe3cee8e9f7793bb6919295b2aea47'/>
<id>490f787a1ebe3cee8e9f7793bb6919295b2aea47</id>
<content type='text'>
If a QVector has been modified from the outside, all its iterators are
invalid. Therefore, we need to do index-based iteration here.

Change-Id: I02b850daf6aadd8f8a81cc93b0d295e1170d7dd6
Reviewed-by: Simon Hausmann &lt;simon.hausmann@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a QVector has been modified from the outside, all its iterators are
invalid. Therefore, we need to do index-based iteration here.

Change-Id: I02b850daf6aadd8f8a81cc93b0d295e1170d7dd6
Reviewed-by: Simon Hausmann &lt;simon.hausmann@qt.io&gt;
</pre>
</div>
</content>
</entry>
</feed>
