Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QMapboxCommon Class Reference

#include <qmapboxcommon.h>

+ Collaboration diagram for QMapboxCommon:

Static Public Member Functions

static QString mapboxNameForCategory (const QString &category)
 
static QGeoLocation parseGeoLocation (const QJsonObject &response)
 

Detailed Description

Definition at line 26 of file qmapboxcommon.h.

Member Function Documentation

◆ mapboxNameForCategory()

QString QMapboxCommon::mapboxNameForCategory ( const QString category)
static

Definition at line 11 of file qmapboxcommon.cpp.

References category(), and QString::toUpper().

Referenced by QPlaceManagerEngineMapbox::initializeCategories(), and QT_BEGIN_NAMESPACE::parsePlaceResult().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parseGeoLocation()

QGeoLocation QMapboxCommon::parseGeoLocation ( const QJsonObject response)
static

Definition at line 22 of file qmapboxcommon.cpp.

References QJsonArray::at(), QString::indexOf(), QJsonValue::isArray(), QString::isEmpty(), QJsonValue::isObject(), QString::mid(), QString::prepend(), properties, QStringLiteral, QString::startsWith(), QJsonValue::toArray(), QJsonValue::toDouble(), QJsonValue::toString(), toString(), and QJsonObject::value().

Referenced by QT_BEGIN_NAMESPACE::parsePlaceResult().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: