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
qplacesearchresult.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 QPLACESEARCHRESULT_H
5#define QPLACESEARCHRESULT_H
6
7#include <QtCore/QSharedDataPointer>
8#include <QtCore/QVariant>
9#include <QtCore/QString>
10#include <QtLocation/qlocationglobal.h>
11
13
14#define Q_DECLARE_SEARCHRESULT_D_FUNC(Class) \
15 inline Class##Private *d_func(); \
16 inline const Class##Private *d_func() const;\
17 friend class Class##Private;
18
19#define Q_DECLARE_SEARCHRESULT_COPY_CTOR(Class) \
20 Class(const QPlaceSearchResult &other);
21
24class QPlaceIcon;
25
26class Q_LOCATION_EXPORT QPlaceSearchResult
27{
28public:
31
32 virtual ~QPlaceSearchResult();
33
35
36 bool operator==(const QPlaceSearchResult &other) const;
37 bool operator!=(const QPlaceSearchResult &other) const {
38 return !(other == *this);
39 }
40
42 UnknownSearchResult = 0,
44 ProposedSearchResult
45 };
46
47 SearchResultType type() const;
48
49 QString title() const;
50 void setTitle(const QString &title);
51
52 QPlaceIcon icon() const;
53 void setIcon(const QPlaceIcon &icon);
54
55protected:
57 QSharedDataPointer<QPlaceSearchResultPrivate> d_ptr;
58
59private:
60 inline QPlaceSearchResultPrivate *d_func();
61 inline const QPlaceSearchResultPrivate *d_func() const;
62
64};
65
67
69
72
73#endif // QPLACESEARCHRESULT_H
\inmodule QtLocation
Definition qplaceicon.h:23
\inmodule QtLocation
\inmodule QtLocation
QSharedDataPointer< QPlaceSearchResultPrivate > d_ptr
SearchResultType
Defines the type of search result.
bool operator!=(const QPlaceSearchResult &other) const
Returns true if other not equal to this search result, otherwise returns false.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
#define Q_DECLARE_METATYPE(TYPE)
Definition qmetatype.h:1525
GLenum type
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
Definition qrandom.cpp:1220
@ Q_RELOCATABLE_TYPE
Definition qtypeinfo.h:158
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
Definition qtypeinfo.h:180
QString title
[35]
QSharedPointer< T > other(t)
[5]
myAction setIcon(SomeIcon)
g setTitle("&User information")
[0]