Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qplacecontactdetail.cpp
Go to the documentation of this file.
1// Copyright (C) 2015 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
6
8
10
12{
13 return label == other.label
14 && value == other.value;
15}
16
83
89
95
101
109
114
119
125{
126 if (this == &other)
127 return *this;
128
129 d_ptr = other.d_ptr;
130 return *this;
131}
132
139bool QPlaceContactDetail::isEqual(const QPlaceContactDetail &other) const noexcept
140{
141 if (d_ptr == other.d_ptr)
142 return true;
143 return ( *(d_ptr.constData()) == *(other.d_ptr.constData()));
144}
145
172{
173 return d_ptr->label;
174}
175
177{
178 d_ptr->label = label;
179}
180
193{
194 return d_ptr->value;
195}
196
198{
199 d_ptr->value = value;
200}
201
206{
207 d_ptr->label.clear();
208 d_ptr->value.clear();
209}
210
211#include "moc_qplacecontactdetail.cpp"
The QPlaceContactDetail class represents a contact detail such as a phone number or website url.
void setValue(const QString &value)
void setLabel(const QString &label)
QPlaceContactDetail & operator=(const QPlaceContactDetail &other) noexcept
Assigns other to this contact detail and returns a reference to this contact detail.
static const QString Fax
\variable QPlaceContactDetail::Fax The constant used to specify fax contact details.
QML_STRUCTURED_VALUEQString label
\qmlproperty string QtLocation::contactDetail::label
static const QString Website
\variable QPlaceContactDetail::Website The constant used to specify website contact details.
static const QString Phone
\qmlvaluetype contactDetail \inqmlmodule QtLocation
~QPlaceContactDetail()
Destroys the contact detail.
QPlaceContactDetail()
Constructs a contact detail.
QString value
\qmlproperty string QtLocation::contactDetail::value
static const QString Email
\variable QPlaceContactDetail::Email The constant to specify email contact details.
void clear()
Clears the contact detail.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
void clear()
Clears the contents of the string and makes it null.
Definition qstring.h:1252
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint GLsizei const GLchar * label
[43]
#define QT_DEFINE_QSDP_SPECIALIZATION_DTOR(Class)
QLatin1StringView QLatin1String
Definition qstringfwd.h:31
QSharedPointer< T > other(t)
[5]