Avogadro  1.1.0
Public Slots | Public Member Functions
Avogadro::ElementDetail Class Reference

An item box displaying more detailed information on the element. More...

#include <elementdetail_p.h>

Inheritance diagram for Avogadro::ElementDetail:
Inheritance graph

List of all members.

Public Slots

void elementChanged (int element)

Public Member Functions

 ElementDetail (int elementNumber=0)
QRectF boundingRect () const
QPainterPath shape () const
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)

Detailed Description

An item box displaying more detailed information on the element.

Marcus D. Hanwell This class implements a QGraphicsItem for displaying a larger box that gives greater detail about the selected element such as its full name, proton number and average atomic mass.

Constructor & Destructor Documentation

Avogadro::ElementDetail::ElementDetail ( int  elementNumber = 0)

Constructor. Should be called with the element number for this item.

Member Function Documentation

the bounding rectangle of the element item.

Reimplemented from QGraphicsItem.

void Avogadro::ElementDetail::elementChanged ( int  element) [slot]

This slot can be used to indicate the active element has changed which will cause this item to redraw with the details of the new element.

References QGraphicsItem::update().

void Avogadro::ElementDetail::paint ( QPainter painter,
const QStyleOptionGraphicsItem option,
QWidget widget 
the painter path which is also a rectangle in this case.

Reimplemented from QGraphicsItem.

References QPainterPath::addRect().

The documentation for this class was generated from the following files: