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
qdeclarativegeomapitemgroup_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 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 QDECLARATIVEGEOMAPITEMGROUP_P_H
5#define QDECLARATIVEGEOMAPITEMGROUP_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtLocation/private/qlocationglobal_p.h>
19#include <QtLocation/private/qdeclarativegeomapitemtransitionmanager_p.h>
20#include <QtQuick/QQuickItem>
21
22QT_BEGIN_NAMESPACE
23
24class QDeclarativeGeoMap;
25class Q_LOCATION_EXPORT QDeclarativeGeoMapItemGroup : public QQuickItem
26{
27 Q_OBJECT
28 QML_NAMED_ELEMENT(MapItemGroup)
29 QML_ADDED_IN_VERSION(5, 0)
30
31public:
32 explicit QDeclarativeGeoMapItemGroup(QQuickItem *parent = nullptr);
33 virtual ~QDeclarativeGeoMapItemGroup();
34
35 void setParentGroup(QDeclarativeGeoMapItemGroup &parentGroup);
36 void setQuickMap(QDeclarativeGeoMap *quickMap);
37 QDeclarativeGeoMap *quickMap() const;
38
39 qreal mapItemOpacity() const;
40
41Q_SIGNALS:
42 void mapItemOpacityChanged();
43 void addTransitionFinished();
44 void removeTransitionFinished();
45
46protected:
47 // QQmlParserStatus interface
48 void classBegin() override;
49 void componentComplete() override;
50
51protected slots:
52 void onMapSizeChanged();
53
54private:
55 QDeclarativeGeoMap *m_quickMap = nullptr;
56 QDeclarativeGeoMapItemGroup *m_parentGroup = nullptr;
57 std::unique_ptr<QDeclarativeGeoMapItemTransitionManager> m_transitionManager;
58
59 friend class QDeclarativeGeoMapItemView;
60 friend class QDeclarativeGeoMapItemTransitionManager;
61};
62
63QT_END_NAMESPACE
64
65QML_DECLARE_TYPE(QDeclarativeGeoMapItemGroup)
66
67#endif // QDECLARATIVEGEOMAPITEMGROUP_P_H