Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qplaceresult.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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QPLACERESULT_H
6
#
define
QPLACERESULT_H
7
8
#
include
<
QtLocation
/
QPlaceSearchResult
>
9
10
QT_BEGIN_NAMESPACE
11
12
class
QPlace;
13
class
QPlaceResultPrivate;
14
15
class
Q_LOCATION_EXPORT
QPlaceResult
:
public
QPlaceSearchResult
16
{
17
public
:
18
QPlaceResult();
19
20
#
ifdef
Q_QDOC
21
QPlaceResult::QPlaceResult(
const
QPlaceSearchResult &other);
22
#
else
23
Q_DECLARE_SEARCHRESULT_COPY_CTOR(QPlaceResult)
24
#
endif
25
26
virtual
~QPlaceResult();
27
28
qreal distance()
const
;
29
void
setDistance(qreal distance);
30
31
QPlace place()
const
;
32
void
setPlace(
const
QPlace &place);
33
34
bool
isSponsored()
const
;
35
void
setSponsored(
bool
sponsored);
36
37
private
:
38
Q_DECLARE_SEARCHRESULT_D_FUNC(QPlaceResult)
39
};
40
41
Q_DECLARE_TYPEINFO
(QPlaceResult, Q_RELOCATABLE_TYPE);
42
43
QT_END_NAMESPACE
44
45
#
endif
QPlaceResult
\inmodule QtLocation
Definition
qplaceresult.h:16
Q_DECLARE_TYPEINFO
Q_DECLARE_TYPEINFO(QByteArrayView, Q_PRIMITIVE_TYPE)
Q_IMPLEMENT_SEARCHRESULT_D_FUNC
#define Q_IMPLEMENT_SEARCHRESULT_D_FUNC(Class)
Definition
qplacesearchresult_p.h:28
Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR
#define Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR(Class)
Definition
qplacesearchresult_p.h:32
qtlocation
src
location
places
qplaceresult.h
Generated on
for Qt by
1.18.0