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