72 const QStyleOptionGraphicsItem *option,
81 painter->setPen(Qt::NoPen);
82 painter->setBrush(Qt::darkGray);
83 painter->drawEllipse(-12, -12, 30, 30);
87 painter->setBrush(Qt::red);
88 painter->drawEllipse(-15, -15, 30, 30);
91 painter->drawEllipse(-15, -15, 30, 30);
95 if(this->isSelected()){
97 painter->setPen(QPen(Qt::red, 5));
98 painter->drawEllipse(-15, -15, 30, 30);
119 painter->setPen(QPen(Qt::black, 1));
121 QSizeF sizeText = staticElectrodeName.size();
122 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)