Home
last modified time | relevance | path

Searched refs:categoryId (Results 1 – 25 of 34) sorted by relevance

12

/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/location/declarativeplaces/
H A Dqdeclarativesupportedcategoriesmodel.cpp372 if (category.categoryId().isEmpty()) in addedCategory()
386 m_categoriesTree.insert(category.categoryId(), categoryNode); in addedCategory()
387 parentNode->childIds.insert(rowToBeAdded,category.categoryId()); in addedCategory()
405 QString categoryId = category.categoryId(); in updatedCategory() local
410 if (category.categoryId().isEmpty() || !m_categoriesTree.contains(categoryId)) in updatedCategory()
417 PlaceCategoryNode *categoryNode = m_categoriesTree.value(categoryId); in updatedCategory()
426 int oldRow = newParentNode->childIds.indexOf(categoryId); in updatedCategory()
429 if (qAbs(rowToBeAdded - newParentNode->childIds.indexOf(categoryId)) > 1) { in updatedCategory()
434 newParentNode->childIds.removeAll(categoryId); in updatedCategory()
435 newParentNode->childIds.insert(rowToBeAdded, categoryId); in updatedCategory()
[all …]
H A Dqdeclarativecategory.cpp171 if (category.categoryId() != previous.categoryId()) in setCategory()
197 if (m_category.categoryId() != id) { in setCategoryId()
203 QString QDeclarativeCategory::categoryId() const in categoryId() function in QDeclarativeCategory
205 return m_category.categoryId(); in categoryId()
369 m_reply = placeManager->removeCategory(m_category.categoryId()); in remove()
H A Dqdeclarativecategory_p.h75 Q_PROPERTY(QString categoryId READ categoryId WRITE setCategoryId NOTIFY categoryIdChanged)
106 QString categoryId() const;
H A Dqdeclarativesupportedcategoriesmodel_p.h142 void removedCategory(const QString &categoryId, const QString &parentId);
147 QModelIndex index(const QString &categoryId) const;
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/location/places/
H A Dqplacecategory.cpp48 : QSharedData(other), categoryId(other.categoryId), name(other.name), visibility(other.visibility… in QPlaceCategoryPrivate()
62 categoryId = other.categoryId; in operator =()
70 return categoryId.isEmpty() in isEmpty()
140 return d->categoryId == other.d->categoryId && in operator ==()
153 QString QPlaceCategory::categoryId() const in categoryId() function in QPlaceCategory
155 return d->categoryId; in categoryId()
163 d->categoryId = identifier; in setCategoryId()
H A Dqplacemanagerengine.cpp220 QPlaceIdReply *QPlaceManagerEngine::removeCategory(const QString &categoryId) in removeCategory() argument
222 Q_UNUSED(categoryId); in removeCategory()
239 QString QPlaceManagerEngine::parentCategoryId(const QString &categoryId) const in parentCategoryId()
241 Q_UNUSED(categoryId); in parentCategoryId()
250 QStringList QPlaceManagerEngine::childCategoryIds(const QString &categoryId) const in childCategoryIds()
252 Q_UNUSED(categoryId); in childCategoryIds()
260 QPlaceCategory QPlaceManagerEngine::category(const QString &categoryId) const in category()
262 Q_UNUSED(categoryId); in category()
H A Dqplacemanagerengine.h74 virtual QPlaceIdReply *removeCategory(const QString &categoryId);
77 virtual QString parentCategoryId(const QString &categoryId) const;
78 virtual QStringList childCategoryIds(const QString &categoryId) const;
79 virtual QPlaceCategory category(const QString &categoryId) const;
102 void categoryRemoved(const QString &categoryId, const QString &parentCategoryId);
H A Dqplacemanager.cpp273 QPlaceIdReply *QPlaceManager::removeCategory(const QString &categoryId) in removeCategory() argument
275 return d->removeCategory(categoryId); in removeCategory()
291 QString QPlaceManager::parentCategoryId(const QString &categoryId) const in parentCategoryId()
293 return d->parentCategoryId(categoryId); in parentCategoryId()
308 QPlaceCategory QPlaceManager::category(const QString &categoryId) const in category()
310 return d->category(categoryId); in category()
H A Dqplacemanager.h84 QPlaceIdReply *removeCategory(const QString &categoryId);
87 QString parentCategoryId(const QString &categoryId) const;
90 QPlaceCategory category(const QString &categoryId) const;
111 void categoryRemoved(const QString &categoryId, const QString &parentId);
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/declarative_core/
H A Dtst_category.qml42 compare(emptyCategory.categoryId, "");
55 categoryId: "test-category-id"
67 compare(qmlCategory.categoryId, "test-category-id");
115 …{ tag: "categoryId", property: "categoryId", signal: "categoryIdChanged", value: "test-category-id…
132 saveCategory.categoryId = "invalid-category-id";
142 // try again without an invalid categoryId
143 saveCategory.categoryId = "";
151 verify(saveCategory.categoryId !== "");
163 compare(modelCategory.categoryId, saveCategory.categoryId);
197 saveCategory.categoryId = "";
[all …]
H A Dtst_place.qml109 categoryId: "category-id-1"
114 categoryId: "category-id-2"
148 if (place1.categories[i].categoryId !== place2.categories[i].categoryId)
318 …categories[0] = Qt.createQmlObject('import QtLocation 5.3; Category { categoryId: "cat-id-1"; name…
319 …categories[1] = Qt.createQmlObject('import QtLocation 5.3; Category { categoryId: "cat-id-2"; name…
330 compare(testPlace.categories[i].categoryId, categories[i].categoryId);
341 compare(testPlace.categories[i].categoryId, categories[i].categoryId);
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/geotestplugin/
H A Dqplacemanagerengine_test.h61 return qHash(QUuid(category.categoryId().toLatin1())); in qHash()
254 m_categories.insert(category.categoryId(), category); in QPlaceManagerEngineTest()
257 m_childCategories[parentId].append(category.categoryId()); in QPlaceManagerEngineTest()
569 if ((!category.categoryId().isEmpty() && !m_categories.contains(category.categoryId())) || in saveCategory()
573 } else if (!category.categoryId().isEmpty()) { in saveCategory()
574 m_categories.insert(category.categoryId(), category); in saveCategory()
578 c.removeAll(category.categoryId()); in saveCategory()
580 if (!children.contains(category.categoryId())) { in saveCategory()
581 children.append(category.categoryId()); in saveCategory()
584 reply->setId(category.categoryId()); in saveCategory()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/geoservices/mapbox/
H A Dqplacemanagerenginemapbox.cpp168 similarIds.append(placeCategory.categoryId()); in doSearch()
245 for (const QString &categoryId : categories) { in initializeCategories() local
247 category.setName(QMapboxCommon::mapboxNameForCategory(categoryId)); in initializeCategories()
248 category.setCategoryId(categoryId); in initializeCategories()
250 m_categories[categoryId] = category; in initializeCategories()
265 QString QPlaceManagerEngineMapbox::parentCategoryId(const QString &categoryId) const in parentCategoryId()
267 Q_UNUSED(categoryId); in parentCategoryId()
273 QStringList QPlaceManagerEngineMapbox::childCategoryIds(const QString &categoryId) const in childCategoryIds()
276 if (categoryId.isEmpty()) in childCategoryIds()
282 QPlaceCategory QPlaceManagerEngineMapbox::category(const QString &categoryId) const in category()
[all …]
H A Dqplacemanagerenginemapbox.h64 QString parentCategoryId(const QString &categoryId) const override;
65 QStringList childCategoryIds(const QString &categoryId) const override;
66 QPlaceCategory category(const QString &categoryId) const override;
H A Dqplacesearchreplymapbox.cpp107 … for (const QString &categoryId : categoryString.split(QStringLiteral(", "), Qt::SkipEmptyParts)) { in parsePlaceResult() local
109 category.setName(QMapboxCommon::mapboxNameForCategory(categoryId)); in parsePlaceResult()
110 category.setCategoryId(categoryId); in parsePlaceResult()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/geoservices/osm/
H A Dqplacemanagerengineosm.cpp162 QString id = category.categoryId(); in search()
221 QString QPlaceManagerEngineOsm::parentCategoryId(const QString &categoryId) const in parentCategoryId()
223 Q_UNUSED(categoryId); in parentCategoryId()
229 QStringList QPlaceManagerEngineOsm::childCategoryIds(const QString &categoryId) const in childCategoryIds()
231 return m_subcategories.value(categoryId); in childCategoryIds()
234 QPlaceCategory QPlaceManagerEngineOsm::category(const QString &categoryId) const in category()
236 return m_categories.value(categoryId); in category()
291 m_categories.insert(category.categoryId(), category); in categoryReplyFinished()
300 if (!m_categories.contains(category.categoryId())) { in categoryReplyFinished()
301 m_categories.insert(category.categoryId(), category); in categoryReplyFinished()
[all …]
H A Dqplacemanagerengineosm.h64 QString parentCategoryId(const QString &categoryId) const override;
65 QStringList childCategoryIds(const QString &categoryId) const override;
66 QPlaceCategory category(const QString &categoryId) const override;
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/placemanager_utils/
H A Dplacemanager_utils.h107 QString *categoryId = 0);
113 const QString &categoryId,
182 QString *categoryId = 0) {
184 expectedError,categoryId);
190 QString *categoryId = 0) {
192 expectedError, categoryId);
201 bool doFetchCategory(const QString &categoryId,
204 return doFetchCategory(placeManager, categoryId,
H A Dplacemanager_utils.cpp189 QString *categoryId) in doSaveCategory() argument
195 if (categoryId != 0) in doSaveCategory()
196 *categoryId = idReply->id(); in doSaveCategory()
207 QPlaceIdReply *idReply = manager->removeCategory(category.categoryId()); in doRemoveCategory()
215 const QString &categoryId, in doFetchCategory() argument
222 *category = manager->category(categoryId); in doFetchCategory()
228 if (category->categoryId() != categoryId) in doFetchCategory()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/geoservices/nokia/
H A Dqplacemanagerengine_nokiav2.cpp176 m_tree.insert(node.category.categoryId(), node); in processCategory()
194 m_tree.insert(node.category.categoryId(), node); in processCategory()
451 ids.append(category.categoryId()); in search()
562 reply->setId(category.categoryId()); in saveCategory()
572 QPlaceIdReply *QPlaceManagerEngineNokiaV2::removeCategory(const QString &categoryId) in removeCategory() argument
575 reply->setId(categoryId); in removeCategory()
655 QString QPlaceManagerEngineNokiaV2::parentCategoryId(const QString &categoryId) const in parentCategoryId()
657 return m_categoryTree.value(categoryId).parentId; in parentCategoryId()
660 QStringList QPlaceManagerEngineNokiaV2::childCategoryIds(const QString &categoryId) const in childCategoryIds()
662 return m_categoryTree.value(categoryId).childIds; in childCategoryIds()
[all …]
H A Dqplacemanagerengine_nokiav2.h86 QPlaceIdReply *removeCategory(const QString &categoryId) override;
89 QString parentCategoryId(const QString &categoryId) const override;
90 QStringList childCategoryIds(const QString &categoryId) const override;
91 QPlaceCategory category(const QString &categoryId) const override;
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/geoservices/esri/
H A Dplacemanagerengine_esri.cpp134 categories.append(placeCategory.categoryId()); in search()
219 QString PlaceManagerEngineEsri::parentCategoryId(const QString &categoryId) const in parentCategoryId()
221 return m_parentCategory.value(categoryId); in parentCategoryId()
224 QStringList PlaceManagerEngineEsri::childCategoryIds(const QString &categoryId) const in childCategoryIds()
226 return m_subcategories.value(categoryId); in childCategoryIds()
229 QPlaceCategory PlaceManagerEngineEsri::category(const QString &categoryId) const in category()
231 return m_categories.value(categoryId); in category()
H A Dplacemanagerengine_esri.h63 QString parentCategoryId(const QString &categoryId) const override;
64 QStringList childCategoryIds(const QString &categoryId) const override;
65 QPlaceCategory category(const QString &categoryId) const override;
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/nokia_services/places_semiauto/
H A Dtst_places.cpp406 QVERIFY(!category.categoryId().isEmpty()); in details()
429 QVERIFY(!category.categoryId().isEmpty()); in categories()
434 QCOMPARE(placeManager->category(category.categoryId()), category); in categories()
437 QVERIFY(placeManager->parentCategoryId(category.categoryId()).isEmpty()); in categories()
439 placeManager->childCategories(category.categoryId()); in categories()
443 QVERIFY(placeManager->childCategories(child.categoryId()).isEmpty()); in categories()
444 … QVERIFY(placeManager->parentCategoryId(child.categoryId()) == category.categoryId()); in categories()
574 if (enCat.categoryId() == fiCat.categoryId()) { in locale()
576 QVERIFY(fiCat == placeManager->category(fiCat.categoryId())); in locale()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplacecategory/
H A Dtst_qplacecategory.cpp72 QVERIFY2(testObj.categoryId() == QString(), "Wrong default value"); in categoryIdTest()
74 QVERIFY2(testObj.categoryId() == "testText", "Wrong value returned"); in categoryIdTest()

12