bosswerk: Add Qt6 support
This commit is contained in:
parent
7d782078b4
commit
f848502467
@ -1,9 +1,9 @@
|
||||
include(../plugins.pri)
|
||||
|
||||
QT += network
|
||||
QT *= network
|
||||
|
||||
SOURCES += \
|
||||
integrationpluginbosswerk.cpp \
|
||||
integrationpluginbosswerk.cpp
|
||||
|
||||
HEADERS += \
|
||||
integrationpluginbosswerk.h \
|
||||
integrationpluginbosswerk.h
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user