1.修复了一些类的isTerminal没有被初始化的bug
2.修复了一些地方判断下一个Terminal的bug Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "breaker.h"
|
||||
|
||||
Breaker::Breaker(QObject *parent):BasicElementInfo(parent)
|
||||
#include <iostream>
|
||||
Breaker::Breaker(QObject *parent):BasicElementInfo(parent),isTerminalA(true)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -31,6 +31,15 @@ bool Breaker::derivedParse(QXmlStreamReader &reader)
|
||||
return true;
|
||||
}
|
||||
|
||||
QString Breaker::getTerminalA()
|
||||
{
|
||||
return this->terminalA;
|
||||
}
|
||||
QString Breaker::getTerminalB()
|
||||
{
|
||||
return this->terminalB;
|
||||
}
|
||||
|
||||
bool Breaker::parse(QXmlStreamReader &reader)
|
||||
{
|
||||
return this->parseBasicInfo(reader);
|
||||
|
||||
Reference in New Issue
Block a user