diff options
author | Michal Klocek <michal.klocek@theqtcompany.com> | 2015-06-10 11:07:50 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@theqtcompany.com> | 2015-06-15 13:19:30 +0000 |
commit | 2b101cabae9a00519e8d048e5add2abb6e8524cc (patch) | |
tree | 74c46b84ee134253091bca1376fb22de1aa5ae6f /tests/plugins/declarativetestplugin | |
parent | 6a39138e0ad7ce2d679fcfc82c6267e08b0465ef (diff) | |
download | qtlocation-2b101cabae9a00519e8d048e5add2abb6e8524cc.tar.gz |
Small cleanup of _ui qml unit tests
Fix version numbers across test files, fix formating and
remove useless debug
Change-Id: Ib7721716a5e270a32c7620d087d9c2982a61fa59
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'tests/plugins/declarativetestplugin')
-rw-r--r-- | tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp b/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp index 9e1757bc..f0b03746 100644 --- a/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp +++ b/tests/plugins/declarativetestplugin/qdeclarativelocationtestmodel.cpp @@ -169,8 +169,6 @@ void QDeclarativeLocationTestModel::repopulate() if (crazyMode_) datacount = (qAbs(qrand()) % datacount_); - qDebug() << "generating random content: " << datacount; - for (int i = 0; i < datacount; ++i) { DataObject* dataobject = new DataObject; dataobject->coordinate_ = QGeoCoordinate(latitude, longitude); @@ -202,10 +200,9 @@ void QDeclarativeLocationTestModel::scheduleRepopulation() { if (!componentCompleted_) return; - if (datacount_ <= 0) { - qDebug() << __FUNCTION__ << "won't schedule model, invalid datacount: " << datacount_; + + if (datacount_ <= 0) return; - } if (timer_.isActive()) timer_.stop(); |