1// Copyright (C) 2016 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#include "qmlsensorrange_p.h"
5
6QmlSensorRange::QmlSensorRange(QObject *parent)
7 : QObject(parent),
8 min(0),
9 max(0)
10{
11}
12
13QmlSensorRange::~QmlSensorRange()
14{
15}
16
17int QmlSensorRange::minimum() const
18{
19 return min;
20}
21
22int QmlSensorRange::maximum() const
23{
24 return max;
25}
26
27QmlSensorOutputRange::QmlSensorOutputRange(QObject *parent)
28 : QObject(parent),
29 min(0),
30 max(0),
31 acc(0)
32{
33}
34
35QmlSensorOutputRange::~QmlSensorOutputRange()
36{
37}
38
39qreal QmlSensorOutputRange::minimum() const
40{
41 return min;
42}
43
44qreal QmlSensorOutputRange::maximum() const
45{
46 return max;
47}
48
49qreal QmlSensorOutputRange::accuracy() const
50{
51 return acc;
52}
53

source code of qtsensors/src/sensorsquick/qmlsensorrange.cpp