summaryrefslogtreecommitdiffstats
path: root/tests/auto/modeltest/modeltest.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-06-18 09:23:24 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-06-18 10:41:28 (GMT)
commitcab70bbf1d29a7cdf81d561fdd74e16f7280c689 (patch)
tree3861bdcc150ebf5c7595c6215c98c5fb9492dfab /tests/auto/modeltest/modeltest.cpp
parentc38ece31d036cf2216392dda9c96736eabcb0f34 (diff)
downloadQt-cab70bbf1d29a7cdf81d561fdd74e16f7280c689.zip
Qt-cab70bbf1d29a7cdf81d561fdd74e16f7280c689.tar.gz
Qt-cab70bbf1d29a7cdf81d561fdd74e16f7280c689.tar.bz2
Autotests: fix compile issue on hpux
Diffstat (limited to 'tests/auto/modeltest/modeltest.cpp')
-rw-r--r--tests/auto/modeltest/modeltest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/modeltest/modeltest.cpp b/tests/auto/modeltest/modeltest.cpp
index 68b723f..c4cc820 100644
--- a/tests/auto/modeltest/modeltest.cpp
+++ b/tests/auto/modeltest/modeltest.cpp
@@ -475,7 +475,7 @@ void ModelTest::data()
void ModelTest::rowsAboutToBeInserted ( const QModelIndex &parent, int start, int end )
{
// Q_UNUSED(end);
- qDebug() << "rowsAboutToBeInserted" << "start=" << start << "end=" << end << "parent=" << model->data ( parent ).value<QString>()
+ qDebug() << "rowsAboutToBeInserted" << "start=" << start << "end=" << end << "parent=" << model->data ( parent ).toString()
<< "current count of parent=" << model->rowCount ( parent ); // << "display of last=" << model->data( model->index(start-1, 0, parent) );
// qDebug() << model->index(start-1, 0, parent) << model->data( model->index(start-1, 0, parent) );
Changing c;
@@ -496,7 +496,7 @@ void ModelTest::rowsInserted ( const QModelIndex & parent, int start, int end )
Changing c = insert.pop();
Q_ASSERT ( c.parent == parent );
qDebug() << "rowsInserted" << "start=" << start << "end=" << end << "oldsize=" << c.oldSize
- << "parent=" << model->data ( parent ).value<QString>() << "current rowcount of parent=" << model->rowCount ( parent );
+ << "parent=" << model->data ( parent ).toString() << "current rowcount of parent=" << model->rowCount ( parent );
for (int ii=start; ii <= end; ii++)
{