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// Qt-Security score:significant reason:default
5
8
10
11bool QPlaceProposedSearchResultPrivate::compare(const QPlaceSearchResultPrivate *other) const
12{
13 const QPlaceProposedSearchResultPrivate *od = static_cast<const QPlaceProposedSearchResultPrivate *>(other);
14 return QPlaceSearchResultPrivate::compare(other) && searchRequest == od->searchRequest;
15}
16
17/*!
18 \class QPlaceProposedSearchResult
19 \inmodule QtLocation
20 \ingroup QtLocation-places
21 \ingroup QtLocation-places-data
22 \since QtLocation 5.2
23
24 \brief The QPlaceProposedSearchResult class represents a search result containing a proposed search.
25
26 \sa QPlaceSearchResult
27*/
28
29/*!
30 Constructs a new proposed search result.
31*/
32QPlaceProposedSearchResult::QPlaceProposedSearchResult()
33: QPlaceSearchResult(new QPlaceProposedSearchResultPrivate)
34{
35}
36
37/*!
38 \fn QPlaceProposedSearchResult::QPlaceProposedSearchResult(const QPlaceSearchRequest &other)
39
40 Contructs a copy of \a other if possible, otherwise constructs a default proposed search
41 result.
42*/
43Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR(QPlaceProposedSearchResult)
44
45Q_IMPLEMENT_SEARCHRESULT_D_FUNC(QPlaceProposedSearchResult)
46
47/*!
48 Destroys the proposed search result.
49*/
50QPlaceProposedSearchResult::~QPlaceProposedSearchResult()
51{
52}
53
54/*!
55 Returns a place search request that can be used to perform an additional proposed search.
56*/
57QPlaceSearchRequest QPlaceProposedSearchResult::searchRequest() const
58{
59 Q_D(const QPlaceProposedSearchResult);
60 return d->searchRequest;
61}
62
63/*!
64 Sets the proposed search request to \a request.
65*/
66void QPlaceProposedSearchResult::setSearchRequest(const QPlaceSearchRequest &request)
67{
68 Q_D(QPlaceProposedSearchResult);
69 d->searchRequest = request;
70}
71
72QT_END_NAMESPACE
bool compare(const QPlaceSearchResultPrivate *other) const override
Combined button and popup list for selecting options.
#define Q_IMPLEMENT_SEARCHRESULT_D_FUNC(Class)
#define Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR(Class)