summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/sensors/android/androidcompass.cpp20
-rw-r--r--src/plugins/sensors/android/qt_attribution.json12
-rw-r--r--src/sensors/doc/src/qtsensors.qdoc7
3 files changed, 20 insertions, 19 deletions
diff --git a/src/plugins/sensors/android/androidcompass.cpp b/src/plugins/sensors/android/androidcompass.cpp
index d6f4f0f7..9cdea54d 100644
--- a/src/plugins/sensors/android/androidcompass.cpp
+++ b/src/plugins/sensors/android/androidcompass.cpp
@@ -1,22 +1,6 @@
// Copyright (C) 2019 BogDan Vatra <bogdan@kde.org>
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
-
-/*
- * Copyright (C) 2008 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
+// Copyright (C) 2008 The Android Open Source Project
+// SPDX-License-Identifier: Apache-2.0
#include "androidcompass.h"
diff --git a/src/plugins/sensors/android/qt_attribution.json b/src/plugins/sensors/android/qt_attribution.json
new file mode 100644
index 00000000..9599e5bf
--- /dev/null
+++ b/src/plugins/sensors/android/qt_attribution.json
@@ -0,0 +1,12 @@
+{
+ "Id": "android-compass",
+ "Name": "Android getRotationMatrix and getOrientation",
+ "QDocModule": "qtsensors",
+ "Description": "Code to calculate the rotation matrix and orientation of a compass, adopted from Android sources.",
+ "QtUsage": "Used on Android, in the Android Sensor plugin.",
+ "Files": "androidcompass.cpp",
+
+ "License": "Apache License 2.0",
+ "LicenseId": "Apache-2.0",
+ "Copyright": "Copyright (C) 2008 The Android Open Source Project"
+}
diff --git a/src/sensors/doc/src/qtsensors.qdoc b/src/sensors/doc/src/qtsensors.qdoc
index 62959fbd..c25349fd 100644
--- a/src/sensors/doc/src/qtsensors.qdoc
+++ b/src/sensors/doc/src/qtsensors.qdoc
@@ -58,11 +58,16 @@
\l{Changes to Qt Sensors} lists important changes in the module API
and functionality that were made for the Qt 6 series of Qt.
- \section1 Licenses
+ \section1 Licenses and Attributions
The Qt Sensors module is available under commercial licenses from
\l{The Qt Company}. In addition, it is available under free software licenses:
The \l{GNU Lesser General Public License, version 3}, or
the \l{GNU General Public License, version 2}.
See \l{Qt Licensing} for further details.
+
+ Furthermore, Qt Sensors in Qt \QtVersion may contain third-party
+ modules under following permissive licenses:
+
+ \generatelist{groupsbymodule attributions-qtsensors}
*/