qt5-declarative rebuild
This commit is contained in:
@@ -598,7 +598,7 @@ index a7e37d1964..01b2f58f16 100644
|
|||||||
|
|
||||||
//
|
//
|
||||||
diff --git a/src/qmlmodels/qqmldelegatemodel.cpp b/src/qmlmodels/qqmldelegatemodel.cpp
|
diff --git a/src/qmlmodels/qqmldelegatemodel.cpp b/src/qmlmodels/qqmldelegatemodel.cpp
|
||||||
index 725b9e8bc3..8a74a854f4 100644
|
index 725b9e8bc3..53e511303e 100644
|
||||||
--- a/src/qmlmodels/qqmldelegatemodel.cpp
|
--- a/src/qmlmodels/qqmldelegatemodel.cpp
|
||||||
+++ b/src/qmlmodels/qqmldelegatemodel.cpp
|
+++ b/src/qmlmodels/qqmldelegatemodel.cpp
|
||||||
@@ -1,6 +1,6 @@
|
@@ -1,6 +1,6 @@
|
||||||
@@ -644,7 +644,26 @@ index 725b9e8bc3..8a74a854f4 100644
|
|||||||
incrementIndexes(m_cache.at(cacheIndex), m_groupCount, removed);
|
incrementIndexes(m_cache.at(cacheIndex), m_groupCount, removed);
|
||||||
|
|
||||||
for (int i = 1; i < m_groupCount; ++i) {
|
for (int i = 1; i < m_groupCount; ++i) {
|
||||||
@@ -1953,6 +1965,38 @@ void QQmlDelegateModel::_q_rowsMoved(
|
@@ -1875,6 +1887,9 @@ void QQmlDelegateModel::_q_modelReset()
|
||||||
|
d->m_count = d->adaptorModelCount();
|
||||||
|
|
||||||
|
const QList<QQmlDelegateModelItem *> cache = d->m_cache;
|
||||||
|
+ for (QQmlDelegateModelItem *item : cache)
|
||||||
|
+ item->referenceObject();
|
||||||
|
+
|
||||||
|
for (int i = 0, c = cache.count(); i < c; ++i) {
|
||||||
|
QQmlDelegateModelItem *item = cache.at(i);
|
||||||
|
// layout change triggered by changing the modelIndex might have
|
||||||
|
@@ -1886,6 +1901,8 @@ void QQmlDelegateModel::_q_modelReset()
|
||||||
|
item->setModelIndex(-1, -1, -1);
|
||||||
|
}
|
||||||
|
|
||||||
|
+ for (QQmlDelegateModelItem *item : cache)
|
||||||
|
+ item->releaseObject();
|
||||||
|
QVector<Compositor::Remove> removes;
|
||||||
|
QVector<Compositor::Insert> inserts;
|
||||||
|
if (oldCount)
|
||||||
|
@@ -1953,6 +1970,38 @@ void QQmlDelegateModel::_q_rowsMoved(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -683,7 +702,7 @@ index 725b9e8bc3..8a74a854f4 100644
|
|||||||
void QQmlDelegateModel::_q_dataChanged(const QModelIndex &begin, const QModelIndex &end, const QVector<int> &roles)
|
void QQmlDelegateModel::_q_dataChanged(const QModelIndex &begin, const QModelIndex &end, const QVector<int> &roles)
|
||||||
{
|
{
|
||||||
Q_D(QQmlDelegateModel);
|
Q_D(QQmlDelegateModel);
|
||||||
@@ -2379,6 +2423,15 @@ void QQmlDelegateModelItem::destroyObject()
|
@@ -2379,6 +2428,15 @@ void QQmlDelegateModelItem::destroyObject()
|
||||||
data->ownContext = nullptr;
|
data->ownContext = nullptr;
|
||||||
data->context = nullptr;
|
data->context = nullptr;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,6 +69,13 @@
|
|||||||
</Package-->
|
</Package-->
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="29">
|
||||||
|
<Date>2022-01-06</Date>
|
||||||
|
<Version>5.15.2</Version>
|
||||||
|
<Comment>Rebuild kde patch.</Comment>
|
||||||
|
<Name>Mustafa Cinasal</Name>
|
||||||
|
<Email>muscnsl@gmail.com</Email>
|
||||||
|
</Update>
|
||||||
<Update release="28">
|
<Update release="28">
|
||||||
<Date>2021-12-11</Date>
|
<Date>2021-12-11</Date>
|
||||||
<Version>5.15.2</Version>
|
<Version>5.15.2</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user