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:
parent
397fd4735a
commit
b28a690c8f
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user