93 const QStyleOptionGraphicsItem *option,
102 painter->setPen(Qt::NoPen);
103 painter->setBrush(Qt::darkGray);
104 painter->drawEllipse(-12, -12, 30, 30);
108 painter->setBrush(Qt::red);
109 painter->drawEllipse(-15, -15, 30, 30);
112 painter->drawEllipse(-15, -15, 30, 30);
116 if(this->isSelected()){
118 painter->setPen(QPen(Qt::red, 5));
119 painter->drawEllipse(-15, -15, 30, 30);
140 painter->setPen(QPen(Qt::black, 1));
142 QSizeF sizeText = staticElectrodeName.size();
143 painter->drawStaticText(-15+((30-sizeText.width())/2), -32, staticElectrodeName);
SelectionSceneItem(QString channelName, int channelNumber, QPointF channelPosition, int channelKind, int channelUnit, QColor channelColor=Qt::blue, bool bIsBadChannel=false)