circuit-logic-simulator/Parts/LowConstant.cpp

27 lines
518 B
C++
Raw Normal View History

2020-03-24 20:18:39 +01:00
#include "LowConstant.h"
#include "../Connector.h"
LowConstant::LowConstant(Logic* logic)
:Part(logic, Circle)
{
addInputs(0);
addOutputs(1);
recalculateLayout();
m_brushColorNormal = Qt::GlobalColor::black;
m_brushColorSelected = Qt::GlobalColor::black;
}
QVector<bool> LowConstant::compute(QVector<bool> inputs)
{
QVector<bool> ret(1);
ret[0] = false;
return ret;
}
QPainterPath LowConstant::symbolPainterPath(QRect limits)
{
Q_UNUSED(limits)
return QPainterPath();
}