summaryrefslogtreecommitdiffstats
path: root/framework/domain
diff options
context:
space:
mode:
Diffstat (limited to 'framework/domain')
-rw-r--r--framework/domain/modeltest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/framework/domain/modeltest.cpp b/framework/domain/modeltest.cpp
index 9e1d92fa..2bd3d27f 100644
--- a/framework/domain/modeltest.cpp
+++ b/framework/domain/modeltest.cpp
@@ -320,7 +320,7 @@ void ModelTest::checkChildren ( const QModelIndex &parent, int currentDepth )
320 if ( rows > 0 ) 320 if ( rows > 0 )
321 QVERIFY( model->hasChildren ( parent ) ); 321 QVERIFY( model->hasChildren ( parent ) );
322 322
323 qWarning() << "parent:" << model->data(parent).toString() << "rows:" << rows 323 qDebug() << "parent:" << model->data(parent).toString() << "rows:" << rows
324 << "columns:" << columns << "parent column:" << parent.column(); 324 << "columns:" << columns << "parent column:" << parent.column();
325 325
326 const QModelIndex topLeftChild = model->index( 0, 0, parent ); 326 const QModelIndex topLeftChild = model->index( 0, 0, parent );
@@ -339,7 +339,7 @@ void ModelTest::checkChildren ( const QModelIndex &parent, int currentDepth )
339 // rowCount() and columnCount() said that it existed... 339 // rowCount() and columnCount() said that it existed...
340 QVERIFY( index.isValid() ); 340 QVERIFY( index.isValid() );
341 341
342 qWarning() << "\tchild("<< r <<", " << c << ", " << index.column() << "):" << model->data(index).toString() << index.internalPointer(); 342 qDebug() << "\tchild("<< r <<", " << c << ", " << index.column() << "):" << model->data(index).toString() << index.internalPointer();
343 343
344 // index() should always return the same index when called twice in a row 344 // index() should always return the same index when called twice in a row
345 QModelIndex modifiedIndex = model->index ( r, c, parent ); 345 QModelIndex modifiedIndex = model->index ( r, c, parent );
@@ -370,9 +370,9 @@ void ModelTest::checkChildren ( const QModelIndex &parent, int currentDepth )
370 // If the next test fails here is some somewhat useful debug you play with. 370 // If the next test fails here is some somewhat useful debug you play with.
371 371
372 if (model->parent(index) != parent) { 372 if (model->parent(index) != parent) {
373 qWarning() << r << c << currentDepth << model->data(index).toString() 373 qDebug() << r << c << currentDepth << model->data(index).toString()
374 << model->data(parent).toString(); 374 << model->data(parent).toString();
375 qWarning() << index << parent << model->parent(index); 375 qDebug() << index << parent << model->parent(index);
376// And a view that you can even use to show the model. 376// And a view that you can even use to show the model.
377// QTreeView view; 377// QTreeView view;
378// view.setModel(model); 378// view.setModel(model);
@@ -384,7 +384,7 @@ void ModelTest::checkChildren ( const QModelIndex &parent, int currentDepth )
384 384
385 // recursively go down the children 385 // recursively go down the children
386 if ( model->hasChildren ( index ) && currentDepth < 10 ) { 386 if ( model->hasChildren ( index ) && currentDepth < 10 ) {
387 qWarning() << r << c << "has children" << model->rowCount(index); 387 qDebug() << r << c << "has children" << model->rowCount(index);
388 checkChildren ( index, ++currentDepth ); 388 checkChildren ( index, ++currentDepth );
389 }/* else { if (currentDepth >= 10) qDebug() << "checked 10 deep"; };*/ 389 }/* else { if (currentDepth >= 10) qDebug() << "checked 10 deep"; };*/
390 390