From b28a690c8f863a3e2afc22ed87f0dc8d77d339dc Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Fri, 18 Nov 2011 14:09:05 +1000 Subject: [PATCH] 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 --- .../kernel/qabstractitemmodel/tst_qabstractitemmodel.cpp | 4 ++-- 1 file 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());