|
AvogadroLibs 1.103.0
|
Public Member Functions | |
| ElementDetail (int elementNumber=0) | |
| QRectF | boundingRect () const override |
| QPainterPath | shape () const override |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
| void | setElement (int element) |
|
explicit |
Constructor. Should be called with the element number for this item.
|
override |
|
override |
|
override |
This is where most of the action takes place. The element box is drawn along with its symbol, proton number, mass and full name.
| void setElement | ( | int | element | ) |
Change the element displayed in the detail object.