Fix Qt 6 Clang build issues

This commit is contained in:
Simon Stürz 2026-03-13 15:01:56 +01:00
parent 22656bdeec
commit e3924ea4da
4 changed files with 3 additions and 2 deletions

View File

@ -91,7 +91,6 @@ const quint8 modeBoost1 = 0x0C; // at the end it returns to automatic mode
const quint8 modeBoost2 = 0x0D; // at the end it returns to manual mode const quint8 modeBoost2 = 0x0D; // at the end it returns to manual mode
const quint8 modeBoost3 = 0x0E; // at the end it returns to holiday mode const quint8 modeBoost3 = 0x0E; // at the end it returns to holiday mode
const quint8 lockOff = 0x00;
const quint8 windowLockOn = 0x10; const quint8 windowLockOn = 0x10;
const quint8 keyLockOn = 0x20; const quint8 keyLockOn = 0x20;
const quint8 batteryCriticalOn = 0x80; const quint8 batteryCriticalOn = 0x80;

View File

@ -28,6 +28,7 @@
#include <QtDebug> #include <QtDebug>
#include <QThread> #include <QThread>
#include <QDebug> #include <QDebug>
#include <QVariantMap>
#include <QJsonDocument> #include <QJsonDocument>
#include "extern-plugininfo.h" #include "extern-plugininfo.h"

View File

@ -25,6 +25,7 @@
#include "kecontact.h" #include "kecontact.h"
#include "extern-plugininfo.h" #include "extern-plugininfo.h"
#include <QVariant>
#include <QJsonDocument> #include <QJsonDocument>
KeContact::KeContact(const QHostAddress &address, KeContactDataLayer *dataLayer, QObject *parent) : KeContact::KeContact(const QHostAddress &address, KeContactDataLayer *dataLayer, QObject *parent) :

View File

@ -55,7 +55,7 @@ void IntegrationPluginOpenUv::discoverThings(ThingDiscoveryInfo *info)
QNetworkRequest request(QUrl("http://ip-api.com/json")); QNetworkRequest request(QUrl("http://ip-api.com/json"));
QNetworkReply* reply = hardwareManager()->networkManager()->get(request); QNetworkReply* reply = hardwareManager()->networkManager()->get(request);
connect(reply, &QNetworkReply::finished, reply, &QNetworkReply::deleteLater); connect(reply, &QNetworkReply::finished, reply, &QNetworkReply::deleteLater);
connect(reply, &QNetworkReply::finished, info, [this, reply, info]() { connect(reply, &QNetworkReply::finished, info, [reply, info]() {
if (reply->error() != QNetworkReply::NoError) { if (reply->error() != QNetworkReply::NoError) {
qCWarning(dcOpenUv()) << "Error fetching geolocation from ip-api:" << reply->error() << reply->errorString(); qCWarning(dcOpenUv()) << "Error fetching geolocation from ip-api:" << reply->error() << reply->errorString();
info->finish(Thing::ThingErrorHardwareFailure, QT_TR_NOOP("Failed to fetch data from the internet.")); info->finish(Thing::ThingErrorHardwareFailure, QT_TR_NOOP("Failed to fetch data from the internet."));