mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Debug messages to monitor model reloading/sorting, will be removed later
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user