Debian Codegraph @

tests/manual/qardboard/dummydeviceorientation.cpp

raw symbols SCIP
1 // Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB).
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4 #include "dummydeviceorientation.h"
5
6 DummyDeviceOrientation::DummyDeviceOrientation(QObject *parent)
7 : AbstractDeviceOrientation(parent)
8 {
9 }
10
11 bool DummyDeviceOrientation::start()
12 {
13 if (!m_enabled) {
14 m_enabled = true;
15 emit enabledChanged(m_enabled);
16 }
17 return true;
18 }
19
20 void DummyDeviceOrientation::stop()
21 {
22 if (m_enabled) {
23 m_enabled = false;
24 emit enabledChanged(m_enabled);
25 }
26 }