From d304b3a5bb9b5c6f2bba22d2f0c42972c6c9f1d1 Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Mon, 31 Oct 2011 17:48:38 +1000 Subject: [PATCH] Remove debug code from qsortfilterproxymodel test Any test diagnostics that are useful should be part of the regular test output, as the CI system cannot switch on commented-out code when there is a test failure. Change-Id: I80691b274d9d2abda72bca894ace9de545410ed8 Reviewed-by: Rohan McGovern --- .../tst_qsortfilterproxymodel.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/auto/widgets/itemviews/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp b/tests/auto/widgets/itemviews/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp index d1732382c0..497034bd2a 100644 --- a/tests/auto/widgets/itemviews/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp +++ b/tests/auto/widgets/itemviews/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp @@ -1436,14 +1436,6 @@ void tst_QSortFilterProxyModel::buildHierarchy(const QStringList &l, QAbstractIt QVERIFY(index.isValid()); m->setData(index, token, Qt::DisplayRole); ++row; -#if 0 - { - QString txt = token; - for (int t = 0; t < ind; ++t) - txt.prepend(' '); - qDebug() << "#" << txt; - } -#endif } } } @@ -1472,14 +1464,10 @@ void tst_QSortFilterProxyModel::checkHierarchy(const QStringList &l, const QAbst QModelIndex index = m->index(row, 0, parent); QVERIFY(index.isValid()); QString str = m->data(index, Qt::DisplayRole).toString(); -#if 0 - qDebug() << "proxy data is" << str << "level" << indent; -#endif QCOMPARE(str, token); ++row; } } - }