From ded902bfb0dafa06489eead1dbf15b0b3780b530 Mon Sep 17 00:00:00 2001 From: abcd Date: Mon, 12 Sep 2011 19:17:58 +1000 Subject: Remove additionalData from QPlace additionalData is now superseded by place attributes. In the qjsondetailsparser processAdContentPackages used to put some content into additional data. indicating whether a place type was an "ad_prime_plus" place. For the Qt 5 use case, for 3rd party developers this doesn't seem necessary and neither does it seem part of the new REST API. Also it seems that the search type has erroneously been placed into the additionalData. This is not necessary as the SearchResult already has the type defined. Change-Id: I35545b48666700a08aa93bfa0fa90ef2f301163e Reviewed-on: http://codereview.qt-project.org/5213 Reviewed-by: Qt Sanity Bot Reviewed-by: Aaron McCarthy --- tests/auto/qplace/tst_qplace.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'tests') diff --git a/tests/auto/qplace/tst_qplace.cpp b/tests/auto/qplace/tst_qplace.cpp index 6d63479e..437037e5 100644 --- a/tests/auto/qplace/tst_qplace.cpp +++ b/tests/auto/qplace/tst_qplace.cpp @@ -16,7 +16,6 @@ public: private Q_SLOTS: void constructorTest(); - void additionalDataTest(); void categoriesTest(); void descriptionsTest(); void detailsFetchedTest(); @@ -61,18 +60,6 @@ void tst_Place::constructorTest() delete testObjPtr; } -void tst_Place::additionalDataTest() -{ - QPlace testObj; - QVERIFY2(testObj.additionalData().count() == 0, "Wrong default value"); - QVariantHash list; - list.insert("key1", "value1"); - list.insert("key2", "value2"); - testObj.setAdditionalData(list); - QVERIFY2(testObj.additionalData().count() == 2, "Wrong value returned"); - QVERIFY2(testObj.additionalData()["key1"] == "value1", "Wrong value[1] returned"); -} - void tst_Place::nameTest() { QPlace testObj; -- cgit v1.2.1