[fix]修改因为同步711而编译不过去的问题
This commit is contained in:
parent
d23436a1f0
commit
b5270dcfe1
@ -1,4 +1,4 @@
|
|||||||
#include "BusbarTemperatureWidget.h"
|
#include "BusbarTemperatureWidget.h"
|
||||||
#include "ui_BusbarTemperatureWidget.h"
|
#include "ui_BusbarTemperatureWidget.h"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -14,16 +14,17 @@ public:
|
|||||||
|
|
||||||
void updateRealValue(QList<SChanStatus> &dataList);
|
void updateRealValue(QList<SChanStatus> &dataList);
|
||||||
|
|
||||||
private:
|
|
||||||
void update();
|
|
||||||
|
|
||||||
QVariant headerData(int section, Qt::Orientation orientation,
|
|
||||||
int role = Qt::DisplayRole) const;
|
|
||||||
|
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||||
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
||||||
|
|
||||||
|
|
||||||
|
QVariant headerData(int section, Qt::Orientation orientation,
|
||||||
|
int role = Qt::DisplayRole) const;
|
||||||
|
|
||||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
||||||
|
private:
|
||||||
|
void update();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString getChanStatusDesc(const int &status) const;
|
QString getChanStatusDesc(const int &status) const;
|
||||||
|
|||||||
@ -444,8 +444,7 @@ void CRobotCtrlWidget::ctrlRobot(QString &pointTag)
|
|||||||
reqQueue.bCheckInterLock = false;
|
reqQueue.bCheckInterLock = false;
|
||||||
|
|
||||||
stCtrlCmd.vecOptCtrlQueue.push_back(reqQueue);
|
stCtrlCmd.vecOptCtrlQueue.push_back(reqQueue);
|
||||||
COptCtrlRequest objReq;
|
std::string strMsg = COptCtrlRequest::generate(stCtrlCmd);
|
||||||
std::string strMsg = objReq.generate(stCtrlCmd);
|
|
||||||
if (strMsg.empty())
|
if (strMsg.empty())
|
||||||
{
|
{
|
||||||
LOGERROR("生成控制命令失败");
|
LOGERROR("生成控制命令失败");
|
||||||
@ -539,10 +538,9 @@ void CRobotCtrlWidget::dealOptMsg(const CMbMessage &objMsg)
|
|||||||
void CRobotCtrlWidget::parseMsg(const CMbMessage &objMsg)
|
void CRobotCtrlWidget::parseMsg(const CMbMessage &objMsg)
|
||||||
{
|
{
|
||||||
int nRetCode = -1;
|
int nRetCode = -1;
|
||||||
COptCtrlReply objOptCtrlReply;
|
|
||||||
SOptCtrlReply stOptCtrlReply;
|
SOptCtrlReply stOptCtrlReply;
|
||||||
std::string strMsg((char *)objMsg.getDataPtr(),objMsg.getDataSize());
|
std::string strMsg((char *)objMsg.getDataPtr(),objMsg.getDataSize());
|
||||||
nRetCode = objOptCtrlReply.parse(strMsg,stOptCtrlReply);
|
nRetCode = COptCtrlReply::parse(strMsg,stOptCtrlReply);
|
||||||
if(stOptCtrlReply.stHead.strKeyIdTag.compare(m_tag.toStdString()) != 0 && stOptCtrlReply.stHead.strInstName.compare(CN_RobotCtrlWidget) != 0)
|
if(stOptCtrlReply.stHead.strKeyIdTag.compare(m_tag.toStdString()) != 0 && stOptCtrlReply.stHead.strInstName.compare(CN_RobotCtrlWidget) != 0)
|
||||||
{
|
{
|
||||||
LOGERROR("标签不匹配,或实例名有问题");
|
LOGERROR("标签不匹配,或实例名有问题");
|
||||||
|
|||||||
@ -23,7 +23,7 @@ HEADERS += \
|
|||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
CStrategyControlWidget.cpp \
|
CStrategyControlWidget.cpp \
|
||||||
main.cpp \
|
# main.cpp \
|
||||||
CStrategyControlPluginWidget.cpp \
|
CStrategyControlPluginWidget.cpp \
|
||||||
template/CPeakValleyTemplateWidget.cpp \
|
template/CPeakValleyTemplateWidget.cpp \
|
||||||
CMbApi.cpp \
|
CMbApi.cpp \
|
||||||
|
|||||||
@ -8,6 +8,7 @@ CONFIG += ordered
|
|||||||
|
|
||||||
SUBDIRS += public \
|
SUBDIRS += public \
|
||||||
idl_files \
|
idl_files \
|
||||||
|
fes/fes_idl_files \
|
||||||
application/OnvifLibs \
|
application/OnvifLibs \
|
||||||
sys \
|
sys \
|
||||||
net \
|
net \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user