bosswerk: Add Qt6 support

This commit is contained in:
Simon Stürz 2025-08-07 15:47:15 +02:00
parent 7d782078b4
commit f848502467
3 changed files with 7 additions and 9 deletions

View File

@ -1,9 +1,9 @@
include(../plugins.pri)
QT += network
QT *= network
SOURCES += \
integrationpluginbosswerk.cpp \
integrationpluginbosswerk.cpp
HEADERS += \
integrationpluginbosswerk.h \
integrationpluginbosswerk.h

View File

@ -1,6 +1,6 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Copyright 2013 - 2024, nymea GmbH
* Copyright 2013 - 2025, nymea GmbH
* Contact: contact@nymea.io
*
* This file is part of nymea.
@ -28,7 +28,6 @@
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include "integrationpluginbosswerk.h"
#include "plugininfo.h"
@ -71,8 +70,7 @@ void IntegrationPluginBosswerk::discoverThings(ThingDiscoveryInfo *info)
QUrl url("http://" + address.toString() + "/status.html");
QNetworkRequest request(url);
QNetworkReply *probeReply = hardwareManager()->networkManager()->get(QNetworkRequest(url));
QNetworkReply *probeReply = hardwareManager()->networkManager()->get(request);
connect(probeReply, &QNetworkReply::finished, probeReply, &QNetworkReply::deleteLater);
connect(probeReply, &QNetworkReply::finished, info, [probeReply, address, this](){
QByteArray data = probeReply->readAll();

View File

@ -1,6 +1,6 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Copyright 2013 - 2024, nymea GmbH
* Copyright 2013 - 2025, nymea GmbH
* Contact: contact@nymea.io
*
* This file is part of nymea.
@ -31,7 +31,7 @@
#ifndef INTEGRATIONPLUGINMEROSS_H
#define INTEGRATIONPLUGINMEROSS_H
#include "integrations/integrationplugin.h"
#include <integrations/integrationplugin.h>
#include "extern-plugininfo.h"
#include <QHostAddress>