From 4ec4c9d44fab69b66854f8e741575d24b8540d3a Mon Sep 17 00:00:00 2001 From: JBTing Date: Tue, 27 Jun 2023 23:03:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E5=90=8C=E4=B8=80=E7=BA=BF=E7=A8=8B?= =?UTF-8?q?=E7=9A=84connect=E4=BD=BF=E7=94=A8=E9=BB=98=E8=AE=A4=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- taskbusplatform/core/tasknode.cpp | 14 ++++++-------- taskbusplatform/core/tasknode.h | 2 -- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/taskbusplatform/core/tasknode.cpp b/taskbusplatform/core/tasknode.cpp index 2a8ae5b..cb26474 100644 --- a/taskbusplatform/core/tasknode.cpp +++ b/taskbusplatform/core/tasknode.cpp @@ -21,25 +21,23 @@ taskNode::taskNode(QObject *parent) ,m_nBatchTime(taskCell::default_batchtime) { connect(m_process,&QProcess::started,this, - &taskNode::sig_pro_started,Qt::QueuedConnection); + &taskNode::sig_pro_started/*,Qt::QueuedConnection*/); connect(m_process,&QProcess::started,this, - &taskNode::slot_started,Qt::QueuedConnection); + &taskNode::slot_started/*,Qt::QueuedConnection*/); connect(m_process, static_cast (&QProcess::finished), - this,&taskNode::sig_pro_stopped,Qt::QueuedConnection); + this,&taskNode::sig_pro_stopped/*,Qt::QueuedConnection*/); connect(m_process, static_cast (&QProcess::finished), - this,&taskNode::slot_stopped,Qt::QueuedConnection); + this,&taskNode::slot_stopped/*,Qt::QueuedConnection*/); connect(m_process,&QProcess::readyReadStandardOutput,this, - &taskNode::slot_readyReadStandardOutput,Qt::QueuedConnection); + &taskNode::slot_readyReadStandardOutput/*,Qt::QueuedConnection*/); connect(m_process,&QProcess::readyReadStandardError,this, - &taskNode::slot_readyReadStandardError,Qt::QueuedConnection); + &taskNode::slot_readyReadStandardError/*,Qt::QueuedConnection*/); connect(m_process,&QProcess::bytesWritten,this, &taskNode::slot_sended); - connect(this,&taskNode::private_sig_nextcab,this, - &taskNode::slot_readyReadStandardOutput,Qt::QueuedConnection); connect(this,&taskNode::sig_new_package,this,&taskNode::slot_write,Qt::QueuedConnection); m_nBp_TimerID = startTimer(200); } diff --git a/taskbusplatform/core/tasknode.h b/taskbusplatform/core/tasknode.h index 3499263..8421ff7 100644 --- a/taskbusplatform/core/tasknode.h +++ b/taskbusplatform/core/tasknode.h @@ -41,8 +41,6 @@ signals: void sig_new_package(); void sig_new_errmsg(QByteArrayList); void sig_iostat(qint64 pid,quint64 pr,quint64 ps,quint64 br, quint64 bs); - void private_sig_nextcab(); - void private_sig_nextwrite(); public slots: void setDebug(bool bdbg){m_bDebug = bdbg;} bool cmd_start(QObject * node,QString cmd, QStringList paras); -- GitLab