Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qplaceproposedsearchresult.cpp
Go to the documentation of this file.
1
// Copyright (C) 2013 Aaron McCarthy <mccarthy.aaron@gmail.com>
2
// Copyright (C) 2022 The Qt Company Ltd.
3
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5
#
include
"qplaceproposedsearchresult.h"
6
#
include
"qplaceproposedsearchresult_p.h"
7
8
QT_BEGIN_NAMESPACE
9
10
bool
QPlaceProposedSearchResultPrivate
::
compare
(
const
QPlaceSearchResultPrivate *other)
const
11
{
12
const
QPlaceProposedSearchResultPrivate
*od =
static_cast
<
const
QPlaceProposedSearchResultPrivate *>(other);
13
return
QPlaceSearchResultPrivate::compare(other) && searchRequest == od->searchRequest;
14
}
15
16
/*!
17
\class QPlaceProposedSearchResult
18
\inmodule QtLocation
19
\ingroup QtLocation-places
20
\ingroup QtLocation-places-data
21
\since QtLocation 5.2
22
23
\brief The QPlaceProposedSearchResult class represents a search result containing a proposed search.
24
25
\sa QPlaceSearchResult
26
*/
27
28
/*!
29
Constructs a new proposed search result.
30
*/
31
QPlaceProposedSearchResult::QPlaceProposedSearchResult()
32
: QPlaceSearchResult(
new
QPlaceProposedSearchResultPrivate)
33
{
34
}
35
36
/*!
37
\fn QPlaceProposedSearchResult::QPlaceProposedSearchResult(const QPlaceSearchRequest &other)
38
39
Contructs a copy of \a other if possible, otherwise constructs a default proposed search
40
result.
41
*/
42
Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR
(QPlaceProposedSearchResult)
43
44
Q_IMPLEMENT_SEARCHRESULT_D_FUNC
(QPlaceProposedSearchResult)
45
46
/*!
47
Destroys the proposed search result.
48
*/
49
QPlaceProposedSearchResult::~QPlaceProposedSearchResult()
50
{
51
}
52
53
/*!
54
Returns a place search request that can be used to perform an additional proposed search.
55
*/
56
QPlaceSearchRequest QPlaceProposedSearchResult::searchRequest()
const
57
{
58
Q_D(
const
QPlaceProposedSearchResult);
59
return
d->searchRequest;
60
}
61
62
/*!
63
Sets the proposed search request to \a request.
64
*/
65
void
QPlaceProposedSearchResult::setSearchRequest(
const
QPlaceSearchRequest &request)
66
{
67
Q_D(QPlaceProposedSearchResult);
68
d->searchRequest = request;
69
}
70
71
QT_END_NAMESPACE
QPlaceProposedSearchResultPrivate
Definition
qplaceproposedsearchresult_p.h:24
QPlaceProposedSearchResultPrivate::compare
bool compare(const QPlaceSearchResultPrivate *other) const override
Definition
qplaceproposedsearchresult.cpp:10
QPlatformGraphicsBufferHelper
\inmodule QtGui
Q_IMPLEMENT_SEARCHRESULT_D_FUNC
#define Q_IMPLEMENT_SEARCHRESULT_D_FUNC(Class)
Definition
qplacesearchresult_p.h:27
Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR
#define Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR(Class)
Definition
qplacesearchresult_p.h:31
qtlocation
src
location
places
qplaceproposedsearchresult.cpp
Generated on
for Qt by
1.14.0