KI18n
ki18nlocaledataqmlplugin.cpp
106 // HACK qmlplugindump chokes on gadget singletons, to the point of breaking ecm_find_qmlmodule()
108 qmlRegisterSingletonType(uri, 1, 0, "Country", [](QQmlEngine *, QJSEngine *engine) -> QJSValue {
113 qmlRegisterSingletonType(uri, 1, 0, "CountrySubdivision", [](QQmlEngine *, QJSEngine *engine) -> QJSValue {
118 qmlRegisterSingletonType(uri, 1, 0, "TimeZone", [](QQmlEngine *, QJSEngine *engine) -> QJSValue {
QStringView country(QStringView ifopt)
QString fromUtf8(const char *str, int size)
KI18NLOCALEDATA_EXPORT KCountry country(const char *)
Returns the country a timezone is in.
static KCountrySubdivision fromCode(QStringView code)
Create a KCountrySubdivision instance from an ISO 3166-2 code.
Definition: kcountrysubdivision.cpp:173
static KCountry fromName(QStringView name)
Attempts to identify the country from the given name.
Definition: kcountry.cpp:339
static KCountry fromLocation(float latitude, float longitude)
Looks up the country at the given geographic coordinate.
Definition: kcountry.cpp:270
static KCountry fromAlpha2(QStringView alpha2Code)
Create a KCountry instance from an ISO 3166-1 alpha 2 code.
Definition: kcountry.cpp:221
static KCountrySubdivision fromLocation(float latitude, float longitude)
Looks up the country subdivision at the given geographic coordinate.
Definition: kcountrysubdivision.cpp:189
QByteArray toUtf8() const const
static KCountry fromAlpha3(QStringView alpha3Code)
Create a KCountry instance from an ISO 3166-1 alpha 3 code.
Definition: kcountry.cpp:253
applicationName
UndefinedValue
const KI18NLOCALEDATA_EXPORT char * fromLocation(float latitude, float longitude)
Returns the timezone at the given geo coordinate.
QJSValue toScriptValue(const T &value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 15 2022 04:07:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 15 2022 04:07:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.