Change confusing test function name.

Naming a test function "_data" is potentially confusing as that string
is a suffix reserved for functions that create data tables for
data-driven tests.  Presumably this function was accidentally caught in
a search and replace at some point before the tests were imported into
the Qt repository in 2006.

Change-Id: I451c0400a1580233ee90b75dd5ad489ee3d3788e
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
Jason McDonald 2011-11-18 14:09:05 +10:00 committed by Qt by Nokia
parent 397fd4735a
commit b28a690c8f

View File

@ -66,7 +66,7 @@ private slots:
void index();
void parent();
void hasChildren();
void _data();
void data();
void headerData();
void itemData();
void itemFlags();
@ -299,7 +299,7 @@ void tst_QAbstractItemModel::hasChildren()
QVERIFY(model.hasChildren(idx) == false);
}
void tst_QAbstractItemModel::_data()
void tst_QAbstractItemModel::data()
{
QtTestModel model(1, 1);
QModelIndex idx = model.index(0, 0, QModelIndex());