aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmltest/quicktestresult.cpp
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2012-01-25 13:48:46 +1000
committerQt by Nokia <qt-info@nokia.com>2012-01-25 06:33:51 +0100
commit18a51f0732a3276fbe314433a090efafeb6e22d4 (patch)
tree9692324ceb17f82ec2a427c989b9c39c7401e13b /src/qmltest/quicktestresult.cpp
parentb2869013fdfb76d60ce8750e24614111f78fef5c (diff)
Add dummy test column for data driven test in qmltest
Normally, data driven test with QTest requires add columns before adding new data rows, otherwise QTest might results into warning or error. However, qmltest does the data driven test in its own way so no columns info needed. So add a dummy column here to make QTest happy. Task-number:QTBUG-23845 Change-Id: I1bfed663fa7b58d71e0cf898db6bd8ae61dae46b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src/qmltest/quicktestresult.cpp')
-rw-r--r--src/qmltest/quicktestresult.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qmltest/quicktestresult.cpp b/src/qmltest/quicktestresult.cpp
index a1fd7ba464..102aa787f9 100644
--- a/src/qmltest/quicktestresult.cpp
+++ b/src/qmltest/quicktestresult.cpp
@@ -343,6 +343,9 @@ void QuickTestResult::initTestTable()
Q_D(QuickTestResult);
delete d->table;
d->table = new QTestTable;
+ //qmltest does not really need the column for data driven test
+ //add this to avoid warnings.
+ d->table->addColumn(qMetaTypeId<QString>(), "qmltest_dummy_data_column");
}
void QuickTestResult::clearTestTable()