7#include <QtCore/QStringList>
9#ifdef QGEOADDRESS_DEBUG
44 if (!parts.at(
i).isEmpty()) {
46 penultimateSeparator = parts.
at(
i + 1);
50 if (parts.at(parts.size() - 2).isEmpty()) {
92 <<
address.streetNumber() << newLine);
104 <<
address.streetNumber() << newLine);
114 <<
address.street() << newLine);
122 <<
address.streetNumber() << newLine);
128 <<
address.street() << newLine);
134 <<
address.streetNumber() << newLine);
140 <<
address.streetNumber() << newLine);
149 <<
address.street() << newLine);
157 <<
address.street() << newLine);
159 <<
address.postalCode() << newLine);
163 <<
address.streetNumber() << Comma
169 <<
address.streetNumber() << newLine);
172 <<
address.state() << newLine);
176 <<
address.street() << newLine);
178 <<
address.postalCode() << newLine);
182 <<
address.street() << newLine);
188 <<
address.street() << newLine);
193 <<
address.street() << newLine);
198 <<
address.street() << newLine);
200 <<
address.state() << newLine);
206 <<
address.streetNumber() << newLine);
211 <<
address.street() << newLine);
216 <<
address.streetNumber() << newLine);
223 <<
address.street() << newLine);
228 <<
address.streetNumber() << newLine);
233 <<
address.streetNumber() << newLine);
236 <<
address.state() << newLine);
240 <<
address.street() << newLine);
246 <<
address.street() << newLine);
248 <<
address.postalCode() << Comma
250 <<
address.country() << newLine);
253 <<
address.streetNumber() << newLine);
259 <<
address.streetNumber() << newLine);
261 <<
address.country() << newLine);
265 <<
address.district() << newLine);
270 <<
address.streetNumber() << Comma
276 <<
address.streetNumber() << newLine);
278 <<
address.postalCode() << newLine);
282 <<
address.streetNumber() << newLine);
288 <<
address.streetNumber() << newLine);
290 <<
address.state() << newLine);
294 <<
address.streetNumber() << newLine);
299 <<
address.streetNumber() << newLine);
310 m_autoGeneratedText(
false)
316 sCountry(
other.sCountry),
317 sCountryCode(
other.sCountryCode),
318 sState(
other.sState),
319 sCounty(
other.sCounty),
321 sDistrict(
other.sDistrict),
322 sStreet(
other.sStreet),
323 sStreetNumber(
other.sStreetNumber),
324 sPostalCode(
other.sPostalCode),
326 m_autoGeneratedText(
false)
697#ifdef QGEOADDRESS_DEBUG
737 if (!
address.isTextGenerated())
QString sState
state field
QString sStreetNumber
street number field
QString sPostalCode
postal code field
QString sStreet
street name field
QString sCountry
country field
QString sCountryCode
country code field
QString sCounty
county field
QString sDistrict
district field
QGeoAddress()
Default constructor.
bool isTextGenerated() const
Returns true if QGeoAddress::text() is automatically generated from address elements,...
QString district() const
Returns the district.
size_t qHash(const QGeoAddress &address, size_t seed) noexcept
Returns the hash value for the address, using seed for the calculation.
QString state() const
Returns the state.
void clear()
Clears all of the address' data fields.
void setCountryCode(const QString &countryCode)
Sets the countryCode according to ISO 3166-1 alpha-3.
void setCountry(const QString &country)
Sets the country name.
void setStreet(const QString &street)
Sets the street name to street.
QString street() const
Returns the street name.
void setCounty(const QString &county)
Sets the county.
void setText(const QString &text)
If text is not empty, explicitly assigns text as the string to be returned by text().
QString streetNumber() const
~QGeoAddress()
Destroys this address.
QString city() const
Returns the city.
void setStreetNumber(const QString &streetNumber)
void setPostalCode(const QString &postalCode)
Sets the postalCode.
QString countryCode() const
Returns the country code according to ISO 3166-1 alpha-3.
QString county() const
Returns the county.
QString postalCode() const
Returns the postal code.
QString country() const
Returns the country name.
QString text() const
Returns the address as a single formatted string.
void setDistrict(const QString &district)
Sets the district.
void setCity(const QString &city)
Sets the city.
bool isEmpty() const
Returns whether this address is empty.
void setState(const QString &state)
Sets the state.
\macro QT_RESTRICTED_CAST_FROM_ASCII
void chop(qsizetype n)
Removes n characters from the end of the string.
void clear()
Clears the contents of the string and makes it null.
qsizetype size() const
Returns the number of characters in this string.
const QChar at(qsizetype i) const
Returns the character at the given index position in the string.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
QString & append(QChar c)
QHash< int, QWidget * > hash
[35multi]
Combined button and popup list for selecting options.
static QString formattedAddress(const QGeoAddress &address, const QString &newLine=QLatin1String("<br/>"))
static QT_BEGIN_NAMESPACE QString addressLine(const QStringList &parts)
constexpr QtPrivate::QHashMultiReturnType< T... > qHashMulti(size_t seed, const T &... args) noexcept(std::conjunction_v< QtPrivate::QNothrowHashable< T >... >)
GLuint GLuint64EXT address
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
#define QT_DEFINE_QSDP_SPECIALIZATION_DTOR(Class)
QLatin1StringView QLatin1String
#define QStringLiteral(str)