commandlauncher: Add Qt6 support

master
Simon Stürz 2025-08-07 15:51:23 +02:00
parent d212742a5a
commit f9a5bfa55e
3 changed files with 9 additions and 11 deletions

View File

@ -1,7 +1,5 @@
include(../plugins.pri)
TARGET = $$qtLibraryTarget(nymea_integrationplugincommandlauncher)
SOURCES += \
integrationplugincommandlauncher.cpp

View File

@ -1,6 +1,6 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Copyright 2013 - 2020, nymea GmbH
* Copyright 2013 - 2025, nymea GmbH
* Contact: contact@nymea.io
*
* This file is part of nymea.
@ -29,11 +29,11 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include "integrationplugincommandlauncher.h"
#include "integrations/thing.h"
#include "plugininfo.h"
#include <QDebug>
#include <integrations/thing.h>
#include <QRegularExpression>
IntegrattionPluginCommandLauncher::IntegrattionPluginCommandLauncher()
{
@ -50,7 +50,7 @@ void IntegrattionPluginCommandLauncher::setupThing(ThingSetupInfo *info)
// Script
if(info->thing()->thingClassId() == scriptThingClassId){
QStringList scriptArguments = info->thing()->paramValue(scriptThingScriptParamTypeId).toString().split(QRegExp("[ \r\n][ \r\n]*"));
QStringList scriptArguments = info->thing()->paramValue(scriptThingScriptParamTypeId).toString().split(QRegularExpression("[ \r\n][ \r\n]*"));
// check if script exists and if it is executable
QFileInfo fileInfo(scriptArguments.first());
if (!fileInfo.exists()) {

View File

@ -1,6 +1,6 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Copyright 2013 - 2020, nymea GmbH
* Copyright 2013 - 2025, nymea GmbH
* Contact: contact@nymea.io
*
* This file is part of nymea.
@ -31,7 +31,7 @@
#ifndef INTEGRATIONPLUGINCOMMANDLAUNCHER_H
#define INTEGRATIONPLUGINCOMMANDLAUNCHER_H
#include "integrations/integrationplugin.h"
#include <integrations/integrationplugin.h>
#include <QProcess>
#include <QFileInfo>