Debug messages to monitor model reloading/sorting, will be removed later

This commit is contained in:
Klaus Basan
2014-09-01 13:25:26 +02:00
parent 62010a09c8
commit 473f8cd608

View File

@@ -99,6 +99,7 @@ namespace BlackGui
template <typename ObjectType, typename ContainerType>
int CListModelBase<ObjectType, ContainerType>::update(const ContainerType &container)
{
// KWB remove: qDebug() will be removed soon
qDebug() << "update" << this->objectName() << "size" << container.size();
this->beginResetModel();
this->m_container = (container.size() > 1 && this->hasValidSortColumn() ?
@@ -190,6 +191,8 @@ namespace BlackGui
BlackMisc::CPropertyIndex propertyIndex = this->m_columns.columnToPropertyIndex(column);
Q_ASSERT(!propertyIndex.isEmpty());
if (propertyIndex.isEmpty()) return list; // at release build do nothing
// KWB: qDebug() will be removed soon
qDebug() << "sort" << this->objectName() << "column" << column << propertyIndex.toQString();
// sort the values