From 473f8cd6086b9aab2b252cd6aa748d7d7b063abe Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 1 Sep 2014 13:25:26 +0200 Subject: [PATCH] Debug messages to monitor model reloading/sorting, will be removed later --- src/blackgui/models/listmodelbase.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/blackgui/models/listmodelbase.cpp b/src/blackgui/models/listmodelbase.cpp index 176d2b767..c5ab42f2c 100644 --- a/src/blackgui/models/listmodelbase.cpp +++ b/src/blackgui/models/listmodelbase.cpp @@ -99,6 +99,7 @@ namespace BlackGui template int CListModelBase::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