DigitalCircuit/include/components/NORgate.hpp
2020-12-02 21:18:53 +01:00

14 lines
293 B
C++

#pragma once
#include <QWidget.h>
#include "../Component.hpp"
class NORGate : public Component
{
public:
NORGate(QWidget* parent) : Component(parent, ":/components/nor.png") { type = "nor"; }
bool Action() override {
return !(connections[0]->Action() || connections[1]->Action());
}
};