16#include <QtSvg/QSvgRenderer>
18#include <QXmlStreamReader>
33 explicit
QeLed(QWidget *parent =
nullptr);
36 bool isLit() {
return this->m_lit;}
41 void setLit(
bool arg){ this->m_lit = arg; this->updateColor(); emit
toggled(arg);}
42 void setNegate(
bool arg){ this->m_negate = arg; this->updateColor(); emit
negated(arg);}
54 bool m_negate =
false;
57 QString m_originalXml;
58 QString m_modifiedXml;
59 const QString c_ledImagePath =
":/led.svg";
62 QColor calculateColor();
void negated(bool newValue)
void setColorOn(QColor arg)
Definition qeled.hpp:40
void toggled(bool newValue)
void setLit(bool arg)
Definition qeled.hpp:41
QColor colorOn
Definition qeled.hpp:28
void setNegate(bool arg)
Definition qeled.hpp:42
bool lit
Definition qeled.hpp:29
bool negate
Definition qeled.hpp:30
void paintEvent(QPaintEvent *event) override
Definition qeled.cpp:32
QColor getColorOn()
Definition qeled.hpp:35
void colorOnChanged(QColor newColorOn)
bool isLit()
Definition qeled.hpp:36
bool isNegated()
Definition qeled.hpp:37