summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-11-18 14:09:05 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-18 08:58:13 +0100
commitb28a690c8f863a3e2afc22ed87f0dc8d77d339dc (patch)
tree07cbd5f5abccc15026e76f48144aabfbbc246b03
parent397fd4735af2deb428db108220e9486203af7e3b (diff)
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>
-rw-r--r--tests/auto/corelib/kernel/qabstractitemmodel/tst_qabstractitemmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/corelib/kernel/qabstractitemmodel/tst_qabstractitemmodel.cpp b/tests/auto/corelib/kernel/qabstractitemmodel/tst_qabstractitemmodel.cpp
index 3908c6c75a..5383446f22 100644
--- a/tests/auto/corelib/kernel/qabstractitemmodel/tst_qabstractitemmodel.cpp
+++ b/tests/auto/corelib/kernel/qabstractitemmodel/tst_qabstractitemmodel.cpp
@@ -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());