File: properties.cpp

package info (click to toggle)
qt6-positioning 6.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 6,064 kB
  • sloc: cpp: 35,740; java: 513; xml: 58; makefile: 23
file content (43 lines) | stat: -rw-r--r-- 928 bytes parent folder | download | duplicates (3)
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> &region)
{
    if (m_region == region)
        return;
    m_region = region;
    emit regionChanged(m_region);
}

#include "moc_properties.cpp"