// sanity check - if that check fails our indexes would be messed up
for(int row = start; row <= end; row++) {
if(sourceItem->child(row)->childCount() > 0) {
- qWarning() << "on_rowsAboutToBeRemoved(): sourceModel() removed rows which have childs on their own!" << sourceModel()->index(row, 0, parent);
+ qWarning() << "on_rowsAboutToBeRemoved(): sourceModel() removed rows which have children on their own!" << sourceModel()->index(row, 0, parent);
Q_ASSERT(false);
}
}
SourceItem *sourceItem = sourceToInternal(parent);
Q_ASSERT(sourceItem);
+ Q_UNUSED(sourceItem);
// sanity check - if that check fails our indexes would be messed up
for(int row = start; row <= end; row++) {
QModelIndex child = sourceModel()->index(row, 0, parent);
if(sourceModel()->rowCount(child) > 0) {
- qWarning() << "on_rowsInserted(): sourceModel() inserted rows which already have childs on their own!" << child;
+ qWarning() << "on_rowsInserted(): sourceModel() inserted rows which already have children on their own!" << child;
Q_ASSERT(false);
}
}
}
qDebug() << "Last item in tree:" << item << item->pos();
Q_ASSERT(lastPos == item->pos());
+ Q_UNUSED(lastPos);
qDebug() << "success!";
}