Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package qt6-sensors for openSUSE:Factory checked in at 2023-12-04 23:00:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/qt6-sensors (Old) and /work/SRC/openSUSE:Factory/.qt6-sensors.new.25432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "qt6-sensors" Mon Dec 4 23:00:14 2023 rev:19 rq:1130426 version:6.6.1 Changes: -------- --- /work/SRC/openSUSE:Factory/qt6-sensors/qt6-sensors.changes 2023-10-13 23:15:14.252248055 +0200 +++ /work/SRC/openSUSE:Factory/.qt6-sensors.new.25432/qt6-sensors.changes 2023-12-04 23:00:30.549462050 +0100 @@ -1,0 +2,6 @@ +Mon Nov 27 14:00:17 UTC 2023 - Christophe Marin <[email protected]> + +- Update to 6.6.1: + * https://www.qt.io/blog/qt-6.6.1-released + +------------------------------------------------------------------- Old: ---- qtsensors-everywhere-src-6.6.0.tar.xz New: ---- qtsensors-everywhere-src-6.6.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ qt6-sensors.spec ++++++ --- /var/tmp/diff_new_pack.R6Vhlw/_old 2023-12-04 23:00:31.525496546 +0100 +++ /var/tmp/diff_new_pack.R6Vhlw/_new 2023-12-04 23:00:31.529496686 +0100 @@ -16,7 +16,7 @@ # -%define real_version 6.6.0 +%define real_version 6.6.1 %define short_version 6.6 %define short_name qtsensors %define tar_name qtsensors-everywhere-src @@ -28,7 +28,7 @@ %endif # Name: qt6-sensors%{?pkg_suffix} -Version: 6.6.0 +Version: 6.6.1 Release: 0 Summary: Qt Sensors API to access sensor hardware License: LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later) ++++++ qtsensors-everywhere-src-6.6.0.tar.xz -> qtsensors-everywhere-src-6.6.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qtsensors-everywhere-src-6.6.0/.cmake.conf new/qtsensors-everywhere-src-6.6.1/.cmake.conf --- old/qtsensors-everywhere-src-6.6.0/.cmake.conf 2023-10-03 20:26:46.000000000 +0200 +++ new/qtsensors-everywhere-src-6.6.1/.cmake.conf 2023-11-20 12:56:28.000000000 +0100 @@ -1,3 +1,3 @@ -set(QT_REPO_MODULE_VERSION "6.6.0") +set(QT_REPO_MODULE_VERSION "6.6.1") set(QT_REPO_MODULE_PRERELEASE_VERSION_SEGMENT "alpha1") set(QT_EXTRA_INTERNAL_TARGET_DEFINES "QT_NO_AS_CONST=1") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qtsensors-everywhere-src-6.6.0/.tag new/qtsensors-everywhere-src-6.6.1/.tag --- old/qtsensors-everywhere-src-6.6.0/.tag 2023-10-03 20:26:46.000000000 +0200 +++ new/qtsensors-everywhere-src-6.6.1/.tag 2023-11-20 12:56:28.000000000 +0100 @@ -1 +1 @@ -9e54af12a4764ac2b72e9842974811f4772d26a7 +f12330c66be0de91e77fedd6de77d512c9884fca diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qtsensors-everywhere-src-6.6.0/dependencies.yaml new/qtsensors-everywhere-src-6.6.1/dependencies.yaml --- old/qtsensors-everywhere-src-6.6.0/dependencies.yaml 2023-10-03 20:26:46.000000000 +0200 +++ new/qtsensors-everywhere-src-6.6.1/dependencies.yaml 2023-11-20 12:56:28.000000000 +0100 @@ -1,7 +1,7 @@ dependencies: ../qtbase: - ref: 33f5e985e480283bb0ca9dea5f82643e825ba87c + ref: e2cbce919ccefcae2b18f90257d67bc6e24c3c94 required: true ../qtdeclarative: - ref: e559d5cf2b66c4a973f83f173d57676a21d287ef + ref: 30cb9f48bacdd8092b2264e6067476cafb2d7e39 required: false diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/Accelerometer.qml new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/Accelerometer.qml --- old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/Accelerometer.qml 2023-10-03 20:26:46.000000000 +0200 +++ new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/Accelerometer.qml 2023-11-20 12:56:28.000000000 +0100 @@ -2,15 +2,12 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause pragma ComponentBehavior: Bound import QtQuick -import QtQuick.Controls import QtQuick.Layouts import QtSensors Item { id: root - property alias headingFontSize: heading.font.pixelSize - required property StackView parentStack required property int fontSize required property int imageSize @@ -40,15 +37,6 @@ anchors.fill: parent spacing: 10 - Text { - id: heading - - Layout.fillWidth: true - horizontalAlignment: Text.AlignHCenter - text: "Accelerometer" - wrapMode: Text.Wrap - } - Image { id: image @@ -78,11 +66,5 @@ zText: "Z: " + accelerometer.z.toFixed(2) zValue: 0.5 + (accelerometer.z / 100) } - - Button { - Layout.fillWidth: true - onClicked: root.parentStack.pop() - text: "Back" - } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/CMakeLists.txt new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/CMakeLists.txt --- old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/CMakeLists.txt 2023-10-03 20:26:46.000000000 +0200 +++ new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/CMakeLists.txt 2023-11-20 12:56:28.000000000 +0100 @@ -25,17 +25,16 @@ set_property(TARGET sensorsshowcase PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/android) endif() -if(APPLE) - if(IOS) - set_property(TARGET sensorsshowcase PROPERTY - MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist" - ) - endif() -endif() -# default search path for the config file is "qrc:/" -qt_add_resources(sensorsshowcase "resources" +if(APPLE AND IOS) + set_property(TARGET sensorsshowcase PROPERTY + MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist" + ) +else() + # default search path for the config file is "qrc:/" + qt_add_resources(sensorsshowcase "resources" FILES qtquickcontrols2.conf) +endif() qt_add_qml_module(sensorsshowcase URI SensorShowcaseModule @@ -52,6 +51,8 @@ "images/compass.svg" "images/magnet.svg" "images/qt_logo.png" + SOURCES + sensorsupport.h ) target_link_libraries(sensorsshowcase diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/Compass.qml new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/Compass.qml --- old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/Compass.qml 2023-10-03 20:26:46.000000000 +0200 +++ new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/Compass.qml 2023-11-20 12:56:28.000000000 +0100 @@ -2,17 +2,15 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause pragma ComponentBehavior: Bound import QtQuick -import QtQuick.Controls import QtQuick.Layouts import QtSensors Item { id: root - property alias headingFontSize: heading.font.pixelSize - required property StackView parentStack required property int fontSize required property int imageSize + property alias isActive: compass.active property real azimuth: 30 @@ -29,14 +27,6 @@ anchors.fill: parent spacing: 10 - Text { - id: heading - Layout.preferredWidth: parent.width - horizontalAlignment: Text.AlignHCenter - wrapMode: Text.Wrap - text: "Compass" - } - Image { id: arrow @@ -67,11 +57,5 @@ text: "Azimuth: " + root.azimuth.toFixed(2) + "°" font.pixelSize: root.fontSize } - - Button { - Layout.fillWidth: true - onClicked: root.parentStack.pop() - text: "Back" - } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/Gyroscope.qml new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/Gyroscope.qml --- old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/Gyroscope.qml 2023-10-03 20:26:46.000000000 +0200 +++ new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/Gyroscope.qml 2023-11-20 12:56:28.000000000 +0100 @@ -9,8 +9,6 @@ Item { id: root - property alias headingFontSize: heading.font.pixelSize - required property StackView parentStack required property int fontSize required property int imageSize @@ -62,15 +60,6 @@ anchors.fill: parent spacing: 10 - Text { - id: heading - - Layout.fillWidth: true - horizontalAlignment: Text.AlignHCenter - text: "Gyroscope" - wrapMode: Text.Wrap - } - Image { id: image @@ -128,16 +117,12 @@ Button { Layout.alignment: Qt.AlignHCenter + Layout.topMargin: 20 Layout.bottomMargin: 10 - Layout.topMargin: 10 + Layout.preferredWidth: parent.width / 2 + Layout.preferredHeight: 60 onClicked: root.resetRotations() text: "Reset rotation" } - - Button { - Layout.fillWidth: true - onClicked: root.parentStack.pop() - text: "Back" - } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/Magnetometer.qml new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/Magnetometer.qml --- old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/Magnetometer.qml 2023-10-03 20:26:46.000000000 +0200 +++ new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/Magnetometer.qml 2023-11-20 12:56:28.000000000 +0100 @@ -2,15 +2,12 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause pragma ComponentBehavior: Bound import QtQuick -import QtQuick.Controls import QtQuick.Layouts import QtSensors Item { id: root - property alias headingFontSize: heading.font.pixelSize - required property StackView parentStack required property int fontSize required property int imageSize @@ -41,15 +38,6 @@ anchors.fill: parent spacing: 10 - Text { - id: heading - Layout.fillWidth: true - horizontalAlignment: Text.AlignHCenter - wrapMode: Text.Wrap - text: "Magnetometer" - Layout.bottomMargin: 20 - } - Image { id: image @@ -76,11 +64,5 @@ zText: "Z: " + root.magnetometerZ.toFixed(9) zValue: 0.5 + (root.magnetometerZ * root.barScaleFactor) } - - Button { - Layout.fillWidth: true - onClicked: root.parentStack.pop() - text: "Back" - } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/Main.qml new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/Main.qml --- old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/Main.qml 2023-10-03 20:26:46.000000000 +0200 +++ new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/Main.qml 2023-11-20 12:56:28.000000000 +0100 @@ -1,6 +1,7 @@ // Copyright (C) 2023 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause pragma ComponentBehavior: Bound + import QtQuick import QtQuick.Controls import QtQuick.Layouts @@ -8,9 +9,7 @@ ApplicationWindow { id: root - readonly property int dynamicMargin: width / 12 - readonly property int defaultFontSize: 20 - readonly property int headingFontSize: 35 + readonly property int defaultFontSize: 22 readonly property int imageSize: width / 2 width: 420 @@ -18,68 +17,97 @@ visible: true title: "Sensors Showcase" + header : ToolBar { + RowLayout { + anchors.fill: parent + anchors.leftMargin: 10 + anchors.rightMargin: 10 + ToolButton { + id: back + text: qsTr("Back") + font.pixelSize: root.defaultFontSize - 4 + visible: stack.depth > 1 + onClicked: { + stack.pop(); + heading.text = root.title; + } + Layout.alignment: Qt.AlignLeft + } + Label { + id: heading + text: root.title + font.pixelSize: root.defaultFontSize + font.weight: Font.Medium + verticalAlignment: Qt.AlignVCenter + Layout.alignment: Qt.AlignCenter + Layout.preferredHeight: 55 + } + Item { + visible: back.visible + Layout.preferredWidth: back.width + } + } + } + StackView { id: stack // Pushes the object and forwards the properties - function pusher(object : string) : void - { - stack.push(object, { - parentStack: stack, - fontSize: root.defaultFontSize, - headingFontSize: root.headingFontSize, - imageSize: root.imageSize - }) + function pusher(object : string) : void { + // Trim the suffix and set it as new heading + heading.text = object.split(".")[0] + return stack.push(object, { + fontSize: root.defaultFontSize, + imageSize: root.imageSize + }) } anchors.fill: parent - anchors.margins: root.dynamicMargin + anchors.margins: width / 12 initialItem: Item { ColumnLayout { id: initialItem - anchors.bottomMargin: (root.width < root.height) ? 2 * root.dynamicMargin : 0 anchors.fill: parent + anchors.topMargin: 20 + anchors.bottomMargin: 20 spacing: 5 - Text { - Layout.bottomMargin: root.dynamicMargin - Layout.preferredWidth: parent.width - horizontalAlignment: Text.AlignHCenter - font.bold: true - font.pixelSize: root.headingFontSize - text: "Sensors Showcase" - wrapMode: Text.WordWrap - } - component CustomButton: Button { + highlighted: true + font.pixelSize: root.defaultFontSize + font.letterSpacing: 1.5 + Layout.alignment: Qt.AlignCenter Layout.fillHeight: true Layout.fillWidth: true - font.pixelSize: root.defaultFontSize - highlighted: true } CustomButton { text: "Accelerometer" onClicked: stack.pusher("Accelerometer.qml") + enabled: SensorSupport.hasAccelerometer() } CustomButton { text: "Proximity" onClicked: stack.pusher("Proximity.qml") + enabled: SensorSupport.hasProximity() } CustomButton { text: "Compass" onClicked: stack.pusher("Compass.qml") + enabled: SensorSupport.hasCompass() } CustomButton { text: "Magnetometer" onClicked: stack.pusher("Magnetometer.qml") + enabled: SensorSupport.hasMagnetometer() } CustomButton { text: "Gyroscope" onClicked: stack.pusher("Gyroscope.qml") + enabled: SensorSupport.hasGyroscope() } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/Proximity.qml new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/Proximity.qml --- old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/Proximity.qml 2023-10-03 20:26:46.000000000 +0200 +++ new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/Proximity.qml 2023-11-20 12:56:28.000000000 +0100 @@ -2,15 +2,12 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause pragma ComponentBehavior: Bound import QtQuick -import QtQuick.Controls import QtQuick.Layouts import QtSensors Item { id: root - property alias headingFontSize: heading.font.pixelSize - required property StackView parentStack required property int imageSize required property int fontSize @@ -19,6 +16,7 @@ ProximitySensor { id: proximity onReadingChanged: root.near = (reading as ProximityReading).near + active: true } ColumnLayout { @@ -27,14 +25,6 @@ anchors.fill: parent spacing: 10 - Text { - id: heading - Layout.preferredWidth: parent.width - horizontalAlignment: Text.AlignHCenter - wrapMode: Text.Wrap - text: "Proximity" - } - Image { id: image @@ -57,28 +47,9 @@ } Text { - id: error - visible: !proximity.active - Layout.preferredWidth: parent.width - horizontalAlignment: Text.AlignHCenter - text: "The proximity sensor is not available on this device!" - font.pixelSize: root.fontSize - font.bold: true - wrapMode: Text.Wrap - color: "red" - } - - Text { - visible: proximity.active Layout.fillHeight: true font.pixelSize: root.fontSize text: "Near: " + root.near } - - Button { - Layout.fillWidth: true - onClicked: root.parentStack.pop() - text: "Back" - } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/android/AndroidManifest.xml new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/android/AndroidManifest.xml --- old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/android/AndroidManifest.xml 2023-10-03 20:26:46.000000000 +0200 +++ new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/android/AndroidManifest.xml 2023-11-20 12:56:28.000000000 +0100 @@ -24,7 +24,8 @@ android:requestLegacyExternalStorage="true" android:allowNativeHeapPointerTagging="false" android:allowBackup="true" - android:fullBackupOnly="false"> + android:fullBackupOnly="false" + android:icon="@drawable/icon"> <activity android:name="org.qtproject.qt.android.bindings.QtActivity" android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" Binary files old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/android/res/drawable-hdpi/icon.png and new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/android/res/drawable-hdpi/icon.png differ Binary files old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/android/res/drawable-ldpi/icon.png and new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/android/res/drawable-ldpi/icon.png differ Binary files old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/android/res/drawable-mdpi/icon.png and new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/android/res/drawable-mdpi/icon.png differ Binary files old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/android/res/drawable-xhdpi/icon.png and new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/android/res/drawable-xhdpi/icon.png differ Binary files old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/android/res/drawable-xxhdpi/icon.png and new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/android/res/drawable-xxhdpi/icon.png differ Binary files old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/android/res/drawable-xxxhdpi/icon.png and new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/android/res/drawable-xxxhdpi/icon.png differ Binary files old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/doc/images/sensorsshowcase-gyroscope.webp and new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/doc/images/sensorsshowcase-gyroscope.webp differ Binary files old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/doc/images/sensorsshowcase-mainview.webp and new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/doc/images/sensorsshowcase-mainview.webp differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/doc/src/sensorsshowcase.qdoc new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/doc/src/sensorsshowcase.qdoc --- old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/doc/src/sensorsshowcase.qdoc 2023-10-03 20:26:46.000000000 +0200 +++ new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/doc/src/sensorsshowcase.qdoc 2023-11-20 12:56:28.000000000 +0100 @@ -7,6 +7,7 @@ \brief The Sensors Showcase example demonstrates sensor usage with visual examples. \meta tag {sensors,quick,mobile} \ingroup qtsensors-examples + \examplecategory {Mobile} \image sensorsshowcase-mainview.webp @@ -18,9 +19,14 @@ \section1 Main Menu - The main view shows the title with the name of the application and a button for each - subview laid out evenly by a \c ColumnLayout. The navigation between the subviews - and the main menu is managed by a \c StackView. + The main view shows the title with the name of the application and a button + for each subview laid out evenly by a \c ColumnLayout. A \c StackView + manages the navigation between the subviews and the main menu. The + application checks the availability of the sensors during startup and + disables the buttons for the sensors that are not available. + + \note To simplify the example, the sensor availability is checked only once + during the startup. \section1 Accelerometer View Binary files old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/images/qt_logo.png and new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/images/qt_logo.png differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/main.cpp new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/main.cpp --- old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/main.cpp 2023-10-03 20:26:46.000000000 +0200 +++ new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/main.cpp 2023-11-20 12:56:28.000000000 +0100 @@ -1,8 +1,7 @@ // Copyright (C) 2023 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -#include <QtGui/qguiapplication.h> -#include <QtQml/qqmlapplicationengine.h> +#include <QGuiApplication> +#include <QQmlApplicationEngine> int main(int argc, char *argv[]) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/qtquickcontrols2.conf new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/qtquickcontrols2.conf --- old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/qtquickcontrols2.conf 2023-10-03 20:26:46.000000000 +0200 +++ new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/qtquickcontrols2.conf 2023-11-20 12:56:28.000000000 +0100 @@ -1,10 +1,6 @@ [Controls] Style=Material -[Universal] -Background=Amber -Accent=Orange - [Material] -Background=Orange -Accent=DeepOrange +Background=#eafcf3 +Accent=#28c878 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/sensorsupport.h new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/sensorsupport.h --- old/qtsensors-everywhere-src-6.6.0/examples/sensors/sensorsshowcase/sensorsupport.h 1970-01-01 01:00:00.000000000 +0100 +++ new/qtsensors-everywhere-src-6.6.1/examples/sensors/sensorsshowcase/sensorsupport.h 2023-11-20 12:56:28.000000000 +0100 @@ -0,0 +1,41 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +#ifndef SENSORSUPPORT_H +#define SENSORSUPPORT_H + +#include <QObject> +#include <QtQmlIntegration> +#include <QtSensors/QtSensors> + +class SensorSupport : public QObject +{ + Q_OBJECT + QML_ELEMENT + QML_SINGLETON + QML_UNCREATABLE("SensorSupport is a utility class") +public: + explicit SensorSupport(QObject *parent = nullptr) : QObject(parent) { } + + Q_INVOKABLE static bool hasAccelerometer() + { + return !QSensor::sensorsForType(QAccelerometer::sensorType).empty(); + } + Q_INVOKABLE static bool hasCompass() + { + return !QSensor::sensorsForType(QCompass::sensorType).empty(); + } + Q_INVOKABLE static bool hasGyroscope() + { + return !QSensor::sensorsForType(QGyroscope::sensorType).empty(); + } + Q_INVOKABLE static bool hasMagnetometer() + { + return !QSensor::sensorsForType(QMagnetometer::sensorType).empty(); + } + Q_INVOKABLE static bool hasProximity() + { + return !QSensor::sensorsForType(QProximitySensor::sensorType).empty(); + } +}; + +#endif // SENSORSUPPORT_H diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/qtsensors-everywhere-src-6.6.0/src/sensors/doc/qtsensors.qdocconf new/qtsensors-everywhere-src-6.6.1/src/sensors/doc/qtsensors.qdocconf --- old/qtsensors-everywhere-src-6.6.0/src/sensors/doc/qtsensors.qdocconf 2023-10-03 20:26:46.000000000 +0200 +++ new/qtsensors-everywhere-src-6.6.1/src/sensors/doc/qtsensors.qdocconf 2023-11-20 12:56:28.000000000 +0100 @@ -45,6 +45,9 @@ depends += qtcore qtdoc qtgui qtquick qtcmake +# Highlighted examples +manifestmeta.highlighted.names = "QtSensors/Sensors Showcase" + navigation.landingpage = "Qt Sensors" navigation.cppclassespage = "Qt Sensors C++ Classes" navigation.qmltypespage = "Qt Sensors QML Types"
