blob: 0f8a0b30c3bed661201056126471fbbf258c4d2a (
plain)
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
|
// Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "dummydeviceorientation.h"
DummyDeviceOrientation::DummyDeviceOrientation(QObject *parent)
: AbstractDeviceOrientation(parent)
{
}
bool DummyDeviceOrientation::start()
{
if (!m_enabled) {
m_enabled = true;
emit enabledChanged(m_enabled);
}
return true;
}
void DummyDeviceOrientation::stop()
{
if (m_enabled) {
m_enabled = false;
emit enabledChanged(m_enabled);
}
}
|