A DiagramObserver watches the associated diagram for changes and deletion and emits corresponsing signals. More...
#include <KDChartDiagramObserver.h>
Signals | |
void | diagramAboutToBeDestroyed (AbstractDiagram *diagram) |
Emitted when a diagram is being destroyed, but before its data is invalidated. | |
void | diagramAttributesChanged (AbstractDiagram *diagram) |
This signal is emitted whenever the attributes of the diagram change. | |
void | diagramDataChanged (AbstractDiagram *diagram) |
This signal is emitted whenever the data of the diagram changes. | |
void | diagramDataHidden (AbstractDiagram *diagram) |
This signal is emitted whenever any of the data of the diagram was set (un)hidden. | |
void | diagramDestroyed (AbstractDiagram *diagram) |
This signal is emitted immediately before the diagram is being destroyed. | |
Public Member Functions | |
const AbstractDiagram * | diagram () const |
AbstractDiagram * | diagram () |
DiagramObserver (AbstractDiagram *diagram, QObject *parent=0) | |
Constructs a new observer observing the given diagram. | |
~DiagramObserver () |
A DiagramObserver watches the associated diagram for changes and deletion and emits corresponsing signals.
Definition at line 42 of file KDChartDiagramObserver.h.
DiagramObserver::DiagramObserver | ( | AbstractDiagram * | diagram, | |
QObject * | parent = 0 | |||
) | [explicit] |
Constructs a new observer observing the given diagram.
Definition at line 33 of file KDChartDiagramObserver.cpp.
DiagramObserver::~DiagramObserver | ( | ) |
Definition at line 44 of file KDChartDiagramObserver.cpp.
const AbstractDiagram * DiagramObserver::diagram | ( | ) | const |
Definition at line 48 of file KDChartDiagramObserver.cpp.
Referenced by KDChart::Legend::datasetCount().
AbstractDiagram * DiagramObserver::diagram | ( | ) |
Definition at line 53 of file KDChartDiagramObserver.cpp.
void KDChart::DiagramObserver::diagramAboutToBeDestroyed | ( | AbstractDiagram * | diagram | ) | [signal] |
Emitted when a diagram is being destroyed, but before its data is invalidated.
void KDChart::DiagramObserver::diagramAttributesChanged | ( | AbstractDiagram * | diagram | ) | [signal] |
This signal is emitted whenever the attributes of the diagram change.
void KDChart::DiagramObserver::diagramDataChanged | ( | AbstractDiagram * | diagram | ) | [signal] |
This signal is emitted whenever the data of the diagram changes.
void KDChart::DiagramObserver::diagramDataHidden | ( | AbstractDiagram * | diagram | ) | [signal] |
This signal is emitted whenever any of the data of the diagram was set (un)hidden.
void KDChart::DiagramObserver::diagramDestroyed | ( | AbstractDiagram * | diagram | ) | [signal] |
This signal is emitted immediately before the diagram is being destroyed.