6#include <QtCore/QScopedValueRollback>
7#include <QtQml/qqmlinfo.h>
8#include <QtQuick/QSGOpacityNode>
9#include <QtPositioning/private/qdoublevector2d_p.h>
10#include <QtQuick/private/qquickmousearea_p.h>
11#include <QtLocation/private/qgeomap_p.h>
12#include <QtLocation/private/qgeoprojection_p.h>
168 if (!mapAndSourceItemSet_ || updatingGeometry_ ||
209 return sourceItem_.
data();
218 if (kids.
size() > 0) {
219 bool printedWarning =
false;
220 for (
auto *
i : kids) {
222 && !qobject_cast<QQuickMouseArea *>(
i)
223 && sourceItem_.
data() !=
i
224 && opacityContainer_ !=
i) {
225 if (!printedWarning) {
226 qmlWarning(
this) <<
"Use the sourceItem property for the contained item, direct children are not supported";
227 printedWarning =
true;
299 if (shape == geoshape_)
304 coordinate_ =
rect.center();
318 mapAndSourceItemSet_ =
false;
324 mapAndSourceItemSet_ =
false;
328 if (!mapAndSourceItemSet_ &&
quickMap() &&
map() && sourceItem_) {
329 mapAndSourceItemSet_ =
true;
350 updatingGeometry_ =
true;
356 if (zoomLevel_ != 0.0
370 && !
p.isProjectable(
p.geoToWrappedMapProjection(
coordinate()))) {
384 if (
map()->cameraData().tilt() > 0.0
402 if (
event.mapSize.width() <= 0 ||
event.mapSize.height() <= 0)
411qreal QDeclarativeGeoMapQuickItem::scaleFactor()
virtual void setPositionOnMap(const QGeoCoordinate &coordinate, const QPointF &offset)
QGeoMap::ItemType m_itemType
float zoomLevelOpacity() const
virtual void setMap(QDeclarativeGeoMap *quickMap, QGeoMap *map)
QDeclarativeGeoMap * quickMap() const
~QDeclarativeGeoMapQuickItem()
void updatePolish() override
const QGeoShape & geoShape() const override
void anchorPointChanged()
QGeoCoordinate coordinate
void setMap(QDeclarativeGeoMap *quickMap, QGeoMap *map) override
void setCoordinate(const QGeoCoordinate &coordinate)
\qmlproperty coordinate MapQuickItem::coordinate
void setGeoShape(const QGeoShape &shape) override
void setAnchorPoint(const QPointF &anchorPoint)
\qmlproperty QPointF MapQuickItem::anchorPoint
void afterViewportChanged(const QGeoMapViewportChangeEvent &event) override
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override
void afterChildrenChanged() override
void setZoomLevel(qreal zoomLevel)
\qmlproperty real MapQuickItem::zoomLevel
void setSourceItem(QQuickItem *sourceItem)
\qmlproperty object MapQuickItem::sourceItem
QDeclarativeGeoMapQuickItem(QQuickItem *parent=nullptr)
bool isValid
This property holds the validity of this geo coordinate.
void cameraDataChanged(const QGeoCameraData &cameraData)
const QGeoProjection & geoProjection() const
const QGeoCameraData & cameraData() const
void setTopLeft(const QGeoCoordinate &topLeft)
Sets the top left coordinate of this geo rectangle to topLeft.
void setBottomRight(const QGeoCoordinate &bottomRight)
Sets the bottom right coordinate of this geo rectangle to bottomRight.
Q_INVOKABLE QGeoRectangle boundingGeoRectangle() const
Returns a QGeoRectangle representing the geographical bounding rectangle of the geo shape,...
qsizetype size() const noexcept
QMapQuickItemMatrix4x4(QObject *parent=nullptr)
\qmltype MapQuickItem \instantiates QDeclarativeGeoMapQuickItem \inqmlmodule QtLocation
void applyTo(QMatrix4x4 *matrix) const override
void setMatrix(const QMatrix4x4 &matrix)
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
\inmodule QtCore\reentrant
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
QList< QQuickItem * > childItems() const
Returns the children of this item.
void setFlag(Flag flag, bool enabled=true)
Enables the specified flag for this item if enabled is true; if enabled is false, the flag is disable...
virtual void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry)
qreal x
\qmlproperty real QtQuick::Item::x \qmlproperty real QtQuick::Item::y \qmlproperty real QtQuick::Item...
void setParentItem(QQuickItem *parent)
qreal y
Defines the item's y position relative to its parent.
qreal width
This property holds the width of this item.
qreal height
This property holds the height of this item.
qreal scale
\qmlproperty real QtQuick::Item::scale This property holds the scale factor for this item.
void setTransformOrigin(TransformOrigin)
\inmodule QtCore\reentrant
constexpr QPointF topLeft() const noexcept
Returns the position of the rectangle's top-left corner.
QMap< QString, QString > map
[6]
Combined button and popup list for selecting options.
bool qFuzzyCompare(qfloat16 p1, qfloat16 p2) noexcept
bool qIsNaN(qfloat16 f) noexcept
n void setPosition(void) \n\
GLenum GLenum GLenum GLenum GLenum scale
Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me)
QQuickItem * qobject_cast< QQuickItem * >(QObject *o)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent