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();