summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-08-26 06:41:46 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-08-26 06:41:46 (GMT)
commit55991e39819007b5c6d0662808d522cf32c383a4 (patch)
tree260929235897a89144d0f50e51bafaa1d88cb4c9 /src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
parentfe9dcaabe564c922696c9dcdad65fc56181e0d44 (diff)
downloadQt-55991e39819007b5c6d0662808d522cf32c383a4.zip
Qt-55991e39819007b5c6d0662808d522cf32c383a4.tar.gz
Qt-55991e39819007b5c6d0662808d522cf32c383a4.tar.bz2
Revert 4bc81bb1cb3cd4a0a3fe071e00556124e770d7ac
QAbstractItemModel calls that for all sorts of reasons. Task-number: QTBUG-13146
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp b/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
index c6b8514..65b14cf 100644
--- a/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
+++ b/src/declarative/graphicsitems/qdeclarativevisualitemmodel.cpp
@@ -714,7 +714,6 @@ void QDeclarativeVisualDataModel::setModel(const QVariant &model)
QObject::disconnect(d->m_abstractItemModel, SIGNAL(rowsMoved(const QModelIndex&,int,int,const QModelIndex&,int)),
this, SLOT(_q_rowsMoved(const QModelIndex&,int,int,const QModelIndex&,int)));
QObject::disconnect(d->m_abstractItemModel, SIGNAL(modelReset()), this, SLOT(_q_modelReset()));
- QObject::disconnect(d->m_abstractItemModel, SIGNAL(layoutChanged()), this, SLOT(_q_modelReset()));
d->m_abstractItemModel = 0;
} else if (d->m_visualItemModel) {
QObject::disconnect(d->m_visualItemModel, SIGNAL(itemsInserted(int,int)),
@@ -762,7 +761,6 @@ void QDeclarativeVisualDataModel::setModel(const QVariant &model)
QObject::connect(d->m_abstractItemModel, SIGNAL(rowsMoved(const QModelIndex&,int,int,const QModelIndex&,int)),
this, SLOT(_q_rowsMoved(const QModelIndex&,int,int,const QModelIndex&,int)));
QObject::connect(d->m_abstractItemModel, SIGNAL(modelReset()), this, SLOT(_q_modelReset()));
- QObject::connect(d->m_abstractItemModel, SIGNAL(layoutChanged()), this, SLOT(_q_modelReset()));
d->m_metaDataCacheable = true;
return;
}