#include "hallsensor.h" #include #include #include Hallsensor::Hallsensor(int x, int y): Sensor(x, y){ } void Hallsensor::teken(QPaintDevice *tp){ QPainter p(tp); QColor kleur; p.setBrush(Qt::SolidPattern); if(isGeactiveerd()) kleur=Qt::blue; else kleur=Qt::yellow; p.setBrush(kleur); QPen pen(kleur,2,Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin); p.setPen(pen); p.drawEllipse(coordinaten().first,coordinaten().second,20,20); }