Remove redundant code from qsortfilterproxymodel test
Remove a couple of "#if 1" directives (but not their contents), which have been present since before the tests were imported into the Qt repository in 2006. Change-Id: Id43aff37843e7a44ed96973f809de3838ba0e5b9 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>bb10
parent
238bdc2e91
commit
98992786f3
|
|
@ -414,20 +414,18 @@ void tst_QSortFilterProxyModel::sortHierarchy_data()
|
|||
QTest::addColumn<QStringList>("initial");
|
||||
QTest::addColumn<QStringList>("expected");
|
||||
|
||||
#if 1
|
||||
QTest::newRow("flat ascending")
|
||||
<< static_cast<int>(Qt::AscendingOrder)
|
||||
<< (QStringList()
|
||||
<< "c" << "f" << "d" << "e" << "a" << "b")
|
||||
<< (QStringList()
|
||||
<< "a" << "b" << "c" << "d" << "e" << "f");
|
||||
#endif
|
||||
|
||||
QTest::newRow("simple hierarchy")
|
||||
<< static_cast<int>(Qt::AscendingOrder)
|
||||
<< (QStringList() << "a" << "<" << "b" << "<" << "c" << ">" << ">")
|
||||
<< (QStringList() << "a" << "<" << "b" << "<" << "c" << ">" << ">");
|
||||
|
||||
#if 1
|
||||
QTest::newRow("hierarchical ascending")
|
||||
<< static_cast<int>(Qt::AscendingOrder)
|
||||
<< (QStringList()
|
||||
|
|
@ -488,7 +486,6 @@ void tst_QSortFilterProxyModel::sortHierarchy_data()
|
|||
<< ">"
|
||||
<< "i"
|
||||
<< ">");
|
||||
#endif
|
||||
}
|
||||
|
||||
void tst_QSortFilterProxyModel::sortHierarchy()
|
||||
|
|
|
|||
Loading…
Reference in New Issue