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
qplaceattribute.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 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
4#include "qplaceattribute_p.h"
5#include "qplaceattribute.h"
6
8
10
12{
13 return label == other.label
14 && text == other.text;
15}
16
18{
19 return label.isEmpty()
20 && text.isEmpty();
21}
22
23
187
193
200
208
213
218
224{
225 if (this == &other)
226 return *this;
227
228 d_ptr = other.d_ptr;
229 return *this;
230}
231
246bool QPlaceAttribute::isEqual(const QPlaceAttribute &other) const noexcept
247{
248 if (d_ptr == other.d_ptr)
249 return true;
250 return ( *(d_ptr.constData()) == *(other.d_ptr.constData()));
251}
252
265{
266 return d_ptr->label;
267}
268
270{
271 d_ptr->label = label;
272}
273
285{
286 return d_ptr->text;
287}
288
290{
291 d_ptr->text = text;
292}
293
299{
300 return d_ptr->isEmpty();
301}
302
303#include "moc_qplaceattribute.cpp"
\inmodule QtLocation
QML_STRUCTURED_VALUEQString label
\qmlproperty string placeAttribute::label
void setLabel(const QString &label)
QPlaceAttribute & operator=(const QPlaceAttribute &other) noexcept
Assigns other to this attribute and returns a reference to this attribute.
~QPlaceAttribute()
Destroys the attribute.
static const QString OpeningHours
\qmltype ExtendedAttributes \instantiates QQmlPropertyMap \inqmlmodule QtLocation
QString text
\qmlproperty string placeAttribute::text
void setText(const QString &text)
bool isEmpty() const
Returns a boolean indicating whether the all the fields of the place attribute are empty or not.
QPlaceAttribute()
Constructs an attribute.
static const QString Provider
\variable QPlaceAttribute::Provider The constant to specify an attribute that defines which provider ...
static const QString Payment
\variable QPlaceAttribute::Payment The constant to specify an attribute that defines the methods of p...
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
bool isEmpty() const noexcept
Returns true if the string has no characters; otherwise returns false.
Definition qstring.h:192
QString text
GLuint GLsizei const GLchar * label
[43]
#define QT_DEFINE_QSDP_SPECIALIZATION_DTOR(Class)
QLatin1StringView QLatin1String
Definition qstringfwd.h:31
QSharedPointer< T > other(t)
[5]