1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include "properties.h"
Properties::Properties(QObject *parent)
: QObject(parent)
{
}
void Properties::setCoordinate(const QGeoCoordinate &c)
{
if (m_coordinate == c)
return;
m_coordinate = c;
emit coordinateChanged(m_coordinate);
}
void Properties::setCoordinates(const QList<QGeoCoordinate> &values)
{
if (m_coordinates == values)
return;
m_coordinates = values;
emit coordinatesChanged(m_coordinates);
}
void Properties::setRectangle(const QGeoRectangle &r)
{
if (m_rectangle == r)
return;
m_rectangle = r;
emit rectangleChanged(m_rectangle);
}
void Properties::setRegion(const QList<QGeoRectangle> ®ion)
{
if (m_region == region)
return;
m_region = region;
emit regionChanged(m_region);
}
#include "moc_properties.cpp"
|