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
qplaceicon.h
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
4#ifndef QPLACEICON_H
5#define QPLACEICON_H
6
7#include <QtLocation/qlocationglobal.h>
8
9#include <QtCore/QMetaType>
10#include <QtCore/QSize>
11#include <QtCore/QSharedDataPointer>
12#include <QtQml/qqml.h>
13
15
16class QUrl;
17class QPlaceManager;
19
21
22class Q_LOCATION_EXPORT QPlaceIcon
23{
27
28 Q_PROPERTY(QVariantMap parameters READ parameters WRITE setParameters)
29 Q_PROPERTY(QPlaceManager *manager READ manager WRITE setManager)
30
31public:
32 static const QString SingleUrl;
33
34 QPlaceIcon();
35 QPlaceIcon(const QPlaceIcon &other) noexcept;
36 QPlaceIcon(QPlaceIcon &&other) noexcept = default;
38
39 QPlaceIcon &operator=(const QPlaceIcon &other) noexcept;
40 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QPlaceIcon)
41
42 void swap(QPlaceIcon &other) noexcept { d.swap(other.d); }
43
44 friend inline bool operator==(const QPlaceIcon &lhs, const QPlaceIcon &rhs) noexcept
45 { return lhs.isEqual(rhs); }
46 friend inline bool operator!=(const QPlaceIcon &lhs, const QPlaceIcon &rhs) noexcept
47 { return !lhs.isEqual(rhs); }
48
49 Q_INVOKABLE QUrl url(const QSize &size = QSize()) const;
50
51 QPlaceManager *manager() const;
52 void setManager(QPlaceManager *manager);
53
54 QVariantMap parameters() const;
55 void setParameters(const QVariantMap &parameters);
56
57 bool isEmpty() const;
58
59private:
60 QSharedDataPointer<QPlaceIconPrivate> d;
61
62 bool isEqual(const QPlaceIcon &other) const noexcept;
63};
64
66
68
69#endif
static bool isEqual(const aiUVTransform &a, const aiUVTransform &b)
QVariantMap parameters
\inmodule QtLocation
Definition qplaceicon.h:23
friend bool operator!=(const QPlaceIcon &lhs, const QPlaceIcon &rhs) noexcept
Returns true if lhs is not equal to rhs, otherwise returns false.
Definition qplaceicon.h:46
friend bool operator==(const QPlaceIcon &lhs, const QPlaceIcon &rhs) noexcept
Returns true if lhs is equal to rhs, otherwise returns false.
Definition qplaceicon.h:44
void swap(QPlaceIcon &other) noexcept
Definition qplaceicon.h:42
\inmodule QtLocation
\inmodule QtCore
Definition qsize.h:25
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qurl.h:94
Combined button and popup list for selecting options.
#define Q_DECLARE_METATYPE(TYPE)
Definition qmetatype.h:1525
GLenum GLuint GLintptr GLsizeiptr size
[1]
#define QML_VALUE_TYPE(NAME)
#define QML_STRUCTURED_VALUE
#define QT_DECLARE_QSDP_SPECIALIZATION_DTOR_WITH_EXPORT(Class, ExportMacro)
#define Q_PROPERTY(...)
#define Q_INVOKABLE
#define Q_GADGET
QUrl url("example.com")
[constructor-url-reference]
QSharedPointer< T > other(t)
[5]
this swap(other)
QNetworkAccessManager manager